{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"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":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"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":"BaseActivity.runInference (cyclomatic 29): BaseActivity.runInference 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/BaseActivity.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed153364b5e0f31844c6a5756eb5c46e1091b234df4a5e30ed4d105ff0322af"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraXLivePreviewActivity.bindAnalysisUseCase (cyclomatic 27): CameraXLivePreviewActivity.bindAnalysisUseCase has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fbeb4ba2eb208a018c3fe54f9155494afc45c73cfea205165254f9e2af1f66"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraXLivePreviewActivity.bindAnalysisUseCase (cyclomatic 27): CameraXLivePreviewActivity.bindAnalysisUseCase has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b5e0e6505d2076a4a8392663f0efd1641f697db478173374901d04f937fd88"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraViewController.addContours (cyclomatic 27): CameraViewController.addContours has cyclomatic complexity 27 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"e168bcf52b13dd6431e9415660132f4162e997bfc02c74ef5e4338ac9bcc3a58"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.addContours (cyclomatic 27): ViewController.addContours has cyclomatic complexity 27 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/ViewController.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c1eeba59683ec12283dbfb0e2cddf1dd30eee452567be2c8598c9249fee6a4"}},{"ruleId":"D1","level":"warning","message":{"text":"StillImageActivity.createImageProcessor (cyclomatic 26): StillImageActivity.createImageProcessor has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"334b5069a52d6843ee30786dd6b6213645f6877b4d667774b405461702e0a597"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenPromptActivity.createGenerateContentRequest (cyclomatic 18): OpenPromptActivity.createGenerateContentRequest has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ad414b13c4c0be57b853478e120c000af920dc8bde601e05153e5f9588029d"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.detect (cyclomatic 18): ViewController.detect has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: DetectorPickerRow.description (cyclomatic 21) 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":"ios/quickstarts/vision/VisionExample/ViewController.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dd3d9d6f6adf30918f686dde2b23f21805edda3e9d78c4004f10e8ab225b92"}},{"ruleId":"D1","level":"warning","message":{"text":"Date.timeAgo (cyclomatic 17): Date.timeAgo 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":"ios/quickstarts/smartreply/SmartReplyExample/DateExtension.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5919ff8fa0ceefbff0899a85e3a6a39c0abbd33ef7975596583015c17c8bbe4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentScreenKt.AgentTimelineCard (cyclomatic 16): AgentScreenKt.AgentTimelineCard 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f07da71cbce1626b36dac69ce9917e8a39a5dbc4f6d2683bf4bbf625539cb27"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentViewModel.sendPrompt (cyclomatic 16): AgentViewModel.sendPrompt 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/viewmodel/AgentViewModel.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c2efe2d6a70ce9711cef96cbf398be4e26f5a9257a93cef6706f91940a210a"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseActivity.runInference (cognitive 65): BaseActivity.runInference has cognitive complexity 65 (threshold 15). Drivers by points: if/else 30 (54 pts), error handling 5 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/BaseActivity.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7915b4fd5a9e97eb110344b1a37c9d56193e2024973095e76bb71c75131a78c4"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraViewController.addContours (cognitive 39): CameraViewController.addContours has cognitive complexity 39 (threshold 15). Drivers by points: loops 13 (26 pts), if/else 13 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc23f2026ed057d0cfe18ce8abee5e6d339f16b575b762d1409a0d640138105"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.addContours (cognitive 39): ViewController.addContours has cognitive complexity 39 (threshold 15). Drivers by points: loops 13 (26 pts), if/else 13 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/ViewController.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3872be455dd8fe97af90fd86e9e706f8f062b8823f517827e8bce06a2429ca8"}},{"ruleId":"D2","level":"warning","message":{"text":"TextGraphic.draw (cognitive 27): TextGraphic.draw has cognitive complexity 27 (threshold 15). Drivers by points: loops 4 (13 pts), ternaries 3 (11 pts), if/else 2 (3 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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/textdetector/TextGraphic.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4905ac63dc33300b982d4ab9b5061b266da1704517c209061e0cd7159a63c17d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentScreenKt.AgentTimelineCard (cognitive 24): AgentScreenKt.AgentTimelineCard has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 2, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab74c4cca802129eeea33714cc7d618547edd42d994f8690144d1f17f8b8ba8c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenPromptActivity.runInferenceStreamImpl (cognitive 24): OpenPromptActivity.runInferenceStreamImpl has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda98244ed0c020010f0642e6b62e63e1aeb9c23cd6731df9fd19c404f731001"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenPromptActivity.createGenerateContentRequest (cognitive 23): OpenPromptActivity.createGenerateContentRequest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (5 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d082337d91a6b4d005e818944d3c5569ff3aaf31ae653ac91c9b53d351b0ac"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenPromptActivity.onConfigUpdated (cognitive 22): OpenPromptActivity.onConfigUpdated has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"964580c7e657adbdb3f1b21779df24f357792b0f3c09371b6bb1fac3819335fe"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentViewModel.sendPrompt (cognitive 22): AgentViewModel.sendPrompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, error handling 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/viewmodel/AgentViewModel.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f716bda51f23f09ad658fbc52f20b0396f1c1d74bfa7e51d096b3829cce2ceb"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenPromptActivity.onOptionsItemSelected (cognitive 21): OpenPromptActivity.onOptionsItemSelected has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (4 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd99259cbcb9b474dd651ecd1a1220300678f79196873b36dd0162c85ce36a36"}},{"ruleId":"D2","level":"warning","message":{"text":"Date.timeAgo (cognitive 21): Date.timeAgo has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 7, 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":"ios/quickstarts/smartreply/SmartReplyExample/DateExtension.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57ca7c4d2da23e15f0d3f61d4ef57b95ebd381a53b6e8354460b8a5b1460d4d"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenPromptActivity.onCreate (cognitive 20): OpenPromptActivity.onCreate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"659730c1071532e56c008a2a1f44aba1e2fd4ad168d67ab5e42abf53df91b33c"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiObjectProcessor.onSuccess (cognitive 20): MultiObjectProcessor.onSuccess has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 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/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/MultiObjectProcessor.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"410f9310f5141718778e83c1e8ba4e95280f6d91d12be8c800922f35352fa0b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ProminentObjectProcessor.onSuccess (cognitive 18): ProminentObjectProcessor.onSuccess has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/ProminentObjectProcessor.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7034a76e82fdfc391adedcfb124c0b68490d4cf5e6d21649481c660213ecf8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechRecognitionActivity.startSpeechRecognition (cognitive 18): SpeechRecognitionActivity.startSpeechRecognition has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 3 (6 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/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechRecognitionActivity.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"787a4e3e955d89e05d47bbe15ffacdb9feaf14a8a0e91d5c45081cf3c91e7c58"}},{"ruleId":"D2","level":"warning","message":{"text":"BitmapUtils.encodeToNv21 (cognitive 18): BitmapUtils.encodeToNv21 has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (11 pts), if/else 1 (3 pts), loops 2 (3 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"8462ab3a6127235216c766471bd43e0a4fc310bfefeb452df2ad896f857c5c84"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.computeAllLanguageTags (cognitive 18): ViewController.computeAllLanguageTags has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 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":"ios/quickstarts/digitalinkrecognition/DigitalInkRecognitionExample/ViewController.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0643a8cd728c75441bfb6a657b2a28be426fc92ed4c9088a3343700e964478"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraSource.selectSizePair (cognitive 17): CameraSource.selectSizePair has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/camera/CameraSource.kt"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fccc67f782c5c55501ab94536c14cb212241f5433462692897ceffc02ad230e"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenPromptActivity.resultToContentItems (cognitive 16): OpenPromptActivity.resultToContentItems has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (6 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"9def45c30878bab3427548b0b61133199bc5758a81ad6e2b2f1a8eb67e113a16"}},{"ruleId":"D2","level":"warning","message":{"text":"FaceGraphic.draw (cognitive 16): FaceGraphic.draw has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 2 (3 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/facedetector/FaceGraphic.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49aca378f98f30eb75e2afc10cad581203847ec459c359fb671ba67fd938e2d"}},{"ruleId":"D2","level":"warning","message":{"text":"TextGraphic.draw (cognitive 16): TextGraphic.draw has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (13 pts), if/else 2 (3 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/textdetector/TextGraphic.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1edf65f2291e4f812a7f3ef741abaecef99ee274b1db00182865beb1636f6fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentScreenKt.AgentScreen: MethodTooLong \u2014 AgentScreen runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e9daccf2076753e012b59f0f9c19659e0f3041241e0b9327d8273def625dc7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenPromptActivity: ClassTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 274 over it, 1.69\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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fbb188cf5d540debc393f9465f7a9e6854151b00f3c8eb1b4522a05e35b3b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kotlin/OpenPromptActivity.kt: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: OpenPromptActivity (85-1012). The bar is 500 significant lines; this is 249 over it, 1.50\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bf1b778e8d2f892b6f46eb0133c4a2fe0f7c00d7cb94c960296e42999c429f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kotlin/AgentScreen.kt: FileTooLong \u2014 725 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 225 over it, 1.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce518a4c05d5588510dd1553cbf8eb8acf11b9030505abcbf644696e3c6ec312"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentScreenKt.AgentTimelineCard: MethodTooLong \u2014 AgentTimelineCard runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4169e4b884513d2defd04faf6fc1de47b11536439e1d441793975490b43876"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentViewModel.sendPrompt: MethodTooLong \u2014 sendPrompt runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/viewmodel/AgentViewModel.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a58eea7adab1af45111d5d12d0554caff5ceac136d4f77091b0be7f18593bd8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentScreenKt.AgentConfigDialog: MethodTooLong \u2014 AgentConfigDialog 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f4161a7bf25476242591814f3ec8598d2a31344997bef094efab8b5806ce32"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseActivity.downloadFeature: MethodTooLong \u2014 downloadFeature runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/BaseActivity.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67a557d9f11b58b5302daea3758943903cb15652677a61c39918569bce37992"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseActivity.runInference: MethodTooLong \u2014 runInference runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/BaseActivity.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57f3b47156546d8f86e5a98854cee4105394330803f4ee2a156ff0904a7c70a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GenerationConfigUtils: 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/genai/app/src/main/java/com/google/mlkit/genai/demo/GenerationConfigUtils.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a069d88c0d44f5c907f34d7578b6aa84f561ee887f3bafc06649ba985b6ce485"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpenPromptActivity: 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a93ee14b25eb15617b1519a2521f9917dde7cc14e2d3119e5c4afe45eb35ae4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentViewModel: ClassTooLong \u2014 421 significant lines (blank, comment-only and punctuation-only lines excluded), 27 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/viewmodel/AgentViewModel.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e37f1045151420e1626ef03d00924fe340b7a6b53cd0bf604ebe389aec1e7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TranslateFragment.onViewCreated: MethodTooLong \u2014 onViewCreated runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/translate/app/src/main/java/com/google/mlkit/samples/nl/translate/java/TranslateFragment.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb57ed7dea36bcffdd7c19d2e2d2377ace12943046a0553636ef5ce16dbbd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 18 shared lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:86-141 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:61-102 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:121-189 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:93-148 \u2014 These 4 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2afbec4adef7ed555716515d9efc9ed0a2ad6d7bc351de0d249fe16f8a13df"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ios/quickstarts/automl/AutoMLExample/ViewController.swift:418-476 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:484-547 | ios/quickstarts/vision/VisionExample/ViewController.swift:671-748 | ios/quickstarts/vision/VisionExample/ViewController.swift:845-896 | ios/quickstarts/vision/VisionExample/ViewController.swift:902-958 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9af117ad30bf63ec9365ef4c4ed6ed0910d990a690006d5e97f055040b6de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (153 corresponding lines): ios/quickstarts/vision/VisionExample/CameraViewController.swift:736-889 | ios/quickstarts/vision/VisionExample/ViewController.swift:294-446 \u2014 These two members are one piece of code written twice and then edited apart: 153 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c25518453ab8711a976785c32b9f96f01619d184f761f7ffb9107e3e67cccbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:199-255 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:199-255 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd64fe080f1ef249c46096741dda92bfd5c1758594509b628b89a078add19ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt:90-151 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/LivePreviewActivity.kt:69-123 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"910cc8f373ca3abef80fb80c912dfa946246195aa3c2b2e68a3af537c116c653"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java:184-231 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/VisionProcessorBase.java:285-362 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c8937ced34b719a4c1a13ebd81b9f498c3f8ff39f8b0062e7d3a67997d0018"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:335-380 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:342-389 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"be718fd0070f4d61a5b3b892e36d6d812c52125b77b6bf4fbe61d09c0b34dc34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): ios/quickstarts/vision/VisionExample/CameraViewController.swift:129-181 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:479-541 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebad641731fa3e8208fc873942389429af98f38863e835a9ef9279de0bab9d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/LabelGraphic.java:57-90 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/labeldetector/LabelGraphic.java:55-95 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/LabelGraphic.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e6fe92126fff917cc1ece4fec1834140458702326e732b5c107f91583b073e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:259-308 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:330-384 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b2f3d65760f7ab0a13404c2092b4ee142a5205e9d84db025c4859583f69335"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:134-184 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:334-379 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38dbfa1fe280a0c8da3b2b4ed17f4dc3a8c8ac32bac6a666a2f1c32c8716895"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:77-107 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:79-112 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"404add30912bd2d975cdbe5ceadfebf048c9e821ed065240bcd9558a802a45fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:257-297 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:257-300 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b962db0ad63a117e3f8988885e64199073bf15696c6ddba85973c63368c83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): ios/quickstarts/automl/AutoMLExample/ViewController.swift:57-93 | ios/quickstarts/vision/VisionExample/ViewController.swift:64-97 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"821e5bf7950e41d6f76961f1bae7ff6b71419d53ca1bc109a0584e8ed8ca4cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:425-459 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:452-484 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"9662b01d8aa1d3f4e8f2e325800ac6808b49c35913cb658b422b311223930e28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:299-333 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:302-340 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24bc1ec7d583b150a5e33211a89d16c11f950192c892828fe8c0336044143dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechRecognitionActivity.kt:470-519 | android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechTranslationActivity.kt:300-355 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechRecognitionActivity.kt"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ade81af121ec0c5b818c3c7aff70144b20f84f2a415cc167154942745bc735d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): ios/quickstarts/automl/AutoMLExample/ViewController.swift:230-254 | ios/quickstarts/vision/VisionExample/ViewController.swift:237-263 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c4b95996c176cd9ea0ee0d35484385a5fb3860651d9dd247c9b1440b2f4993"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:482-505 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:660-684 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"722d972ee432892538e0096d8533985062ceba7e814f32a7af87210b6e3b6661"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java:47-69 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java:55-77 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b522231728b3bacac935600087ce8249c45a7b3e956553bb29d3f211e29d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:187-214 | android/documentscanner/app/src/main/java/com/google/mlkit/samples/documentscanner/java/MainActivity.java:127-153 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:258-285 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff7c5c6847d3b9ddcae1cccfb2241bbbdb11dfe13bd8ce5c36ecaa815b3b40f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ChooserActivity.java:78-108 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/ChooserActivity.java:68-92 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ChooserActivity.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4931aba55317b3f099626fbfb530b4655df6d2987eae030b70ab9060ddbd0772"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/java/MainActivityJava.java:105-130 | android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/java/MainActivityJava.java:137-172 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/java/MainActivityJava.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec647a2cf2d39a452eaecc216226a0cc51c72b9fe0c7b275ce69d95998b26016"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): ios/quickstarts/smartreply/SmartReplyExample/MainViewController.swift:226-241 | ios/quickstarts/smartreply/SmartReplyExample/MainViewController.swift:243-264 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/smartreply/SmartReplyExample/MainViewController.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e761cfec4d2ab43742983a1a2360cda9f72dd9ad90edc41f9883da72fb2c67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java:69-100 | android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java:131-165 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e70cbf5b4b45b738fe19448901235e167544b9b49e68957df8221ce56e84ddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/barcodescanner/BarcodeGraphic.java:66-93 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/textdetector/TextGraphic.java:148-166 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/barcodescanner/BarcodeGraphic.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"24daf43c360d6f16ee7bbf1bb7bea434a525d879850df007e5b9efbcaf1891f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): android/documentscanner/app/src/main/java/com/google/mlkit/samples/documentscanner/kotlin/MainActivity.kt:116-142 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/StillImageActivity.kt:206-235 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/documentscanner/app/src/main/java/com/google/mlkit/samples/documentscanner/kotlin/MainActivity.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cc25e206cf45065c5860922ee3adf7fedb972a3ceda424064eab15c458ea21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/kotlin/MainActivityKotlin.kt:99-122 | android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/kotlin/MainActivityKotlin.kt:129-157 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/kotlin/MainActivityKotlin.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5842375901255f0bbf8e1ceef15e2a10c4d60140a3d9077e0e93d0d060171f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:76-98 | ios/quickstarts/vision/VisionExample/UIUtilities.swift:101-125 | ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift:74-95 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad517285dcfdf13f673e1808c05ef3ca94f294a96603d0c5d33a4bf3776c104"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/barcodescanner/BarcodeGraphic.kt:51-75 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/textdetector/TextGraphic.kt:118-137 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/barcodescanner/BarcodeGraphic.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a772e394b0fae9ed85f62ddf8a9adabb0c0e52926f0aff8088b010cba03e170"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:376-401 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:545-571 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b49dec003027247736579156982a850fde64956d91065f6924c4351bf708eea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:204-236 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:194-224 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e056032262d4e605c7113e7178377868ba6fa530714dd7224a696282c88c823e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java:90-104 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectDetectorProcessor.java:88-102 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a00623e2467f15b1b79f126f08c4fa7542a9fada7702f33ec496942d56a6ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java:233-256 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java:258-281 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a13ef699c308ce2d06ec8fb383e1bc4c77229d2faffe7608da8fede2f97ce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:223-237 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:294-308 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce76ebbadcfa18c9f3b57529abd3dff0865a84d26b858948421809039e7cd60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:221-240 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:271-291 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd65ca72634e70a4d0ce2dd1f6a1b678839e298bfa568fb7f73e67d5a730e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ProofreadingActivity.kt:104-129 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/RewritingActivity.kt:104-132 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ProofreadingActivity.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab797f79c294bbe34cdf4cbcce8117c7ac2debd2d7171e31bfd873354315d315"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java:177-199 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java:153-175 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"376ed5b9b571df72d48f42b757f24a91ada1891e54052750a039ae2eef63261a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:26-41 | ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift:25-40 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce90a4219f26e5c943e0d0ae2b65602e1d7d0c74b9243e76ac1dd53e12e6226"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt:988-1013 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/EmbeddingScreen.kt:341-367 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ced101eefab7b66f95feb4a583c5e8c5fbedb1a140638b4ee1d67c828ace77c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:165-192 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:212-238 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ed7f1eb2248747d1f666df345ff386eeac5f7cc8f356f37b4aaf55ca431134"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 26\u002B corresponding lines): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:315-340 | ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:342-367 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:302-329 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:331-357 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2655c9f360ae3775b176f149d5691878b68d00a99621a08ecde2c3a5ade9e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:469-492 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:494-518 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bce2a206251ec00307199dc650985f74f4feb9fbe0b9eecc3843f1dc9d333de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java:106-127 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/LivePreviewPreferenceFragment.java:125-147 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff2d53407469ecf4a47d36bae5e65540201449614780de3e4dbb5ffd748f524"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/InferenceInfoGraphic.java:50-67 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/InferenceInfoGraphic.java:63-88 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/InferenceInfoGraphic.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"785a3db01f3af6e3df1ce677472e3c897bce365db0928c87516575ee0d5891c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java:73-87 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java:81-95 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fc116333d4c094ee7d7734cf85b3009d95691d30073f8efdbebc97dd58c2a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ChatFragment.java:192-203 | android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ChatFragment.java:205-219 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ChatFragment.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"2417390d06e63902cac335689e6d825617aa823520781288af17a26d9823fb15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java:123-141 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java:168-186 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2a94ea5fb134e57efe0a08a41ba7fc71f16dd12ff1a2d09e886e7e2de63b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/barcodescanner/BarcodeGraphic.java:43-60 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/textdetector/TextGraphic.java:64-86 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/barcodescanner/BarcodeGraphic.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f53e11b74decd0a7b6255e9e700eecb4f3507fee7bf9e530e4ac8732ddd699"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ProofreadingActivity.kt:87-102 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/RewritingActivity.kt:87-102 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/SummarizationActivity.kt:85-100 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ProofreadingActivity.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a32ad02703f11b0a8d9517980f41b9523c4dc87980b068ab9ac00ffe96f008"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java:49-67 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectDetectorProcessor.java:48-65 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ee9ae19c0ca88bfc10c984bba14a58c251035bbc00c76c060a0b81604a1859"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:109-130 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:114-129 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ed2645a4af4488c9c97145f1602843a02699844fd684e70737e98293de31ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt:444-458 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt:460-474 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"1275017efcb9b2e3ae0490f1d6a1ae9799964749718d7754361a3173586087aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java:76-88 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectDetectorProcessor.java:74-86 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8181115db880bb7a69198a709dab4fd4c9fec616b8699cc41b275b0c68fab2a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/segmenter/SegmentationGraphic.java:57-71 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/subjectsegmenter/SubjectSegmentationGraphic.java:78-90 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/segmenter/SegmentationGraphic.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"432a5ddf4677b8565b30af69712afeb85c5582b3f9f15f02eb82f184769bcbfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/kotlin/chat/ChatFragment.kt:185-196 | android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/kotlin/chat/ChatFragment.kt:198-212 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/kotlin/chat/ChatFragment.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"231d8245ef6193ffe78260deb82638a3d8caca4c835ef83b9ffe297cf5446b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/segmenter/SegmentationGraphic.kt:39-53 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/subjectsegmenter/SubjectSegmentationGraphic.kt:48-64 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/segmenter/SegmentationGraphic.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08d11d08c9a0a40b131fdf4859d41f9c62c1e58c3f8205899da0b8249ffe7ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java:84-98 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/VisionProcessorBase.java:104-118 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"19416d3bf0f79506d087a84214904d1a417dc8906427253420b09a5cbbf0d673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ProofreadingActivity.kt:53-65 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/RewritingActivity.kt:53-65 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ProofreadingActivity.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1869b573a84adadabb2bfe40171f5d1285d8421f1d089bda0080331a8d771595"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt:185-197 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt:210-222 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c5988f85ce2c61ac1b45dfddceb0612e9e0db4013c9bad5f9c4c63674c6142"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt:458-465 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt:483-490 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8c10304184efe6644131efaaadaa926daf83425e39c9a4d35d6a11a8bfefb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:72-88 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:95-111 | ios/quickstarts/entityextraction/EntityExtractionExample/ModelManagementViewController.swift:28-36 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cd99050fe3204d1eb114494ad4b80d995ff66305e92cf9d109fdca4cea951a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:43-50 | ios/quickstarts/vision/VisionExample/UIUtilities.swift:66-75 | ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift:42-48 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d287b1983a8014eae4cfd7c2526c64dd6e457659dec9d062ae4c4f2d3c9d602"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechTranslationActivity.kt:407-421 | android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechRecognitionActivity.kt:598-608 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechTranslationActivity.kt"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b2060aa5276e81d3b6e2fbaaa49533cc4254ed83c16942c610bdd47fa94dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:153-168 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:178-193 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:146-160 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"970187b09eadac8d084efb0b78e1e1c4d2eb1ab9b20cfc3cdc257b8768e91a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/MainActivityJava.java:28-38 | android/translate/app/src/main/java/com/google/mlkit/samples/nl/translate/java/MainActivity.java:26-36 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/MainActivityJava.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5407cd0d9bbd5139e8f9c2e54a51af8c33321671826f4789ee61df479f636c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:90-102 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:113-125 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcd610a1fd17ecfd1df29f1e267e2a2c436c0f7f6991b4e2066f99f6e60dd31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:405-408 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:432-435 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8085333a30caa797ca5d8d57aa02c47e62bf600723d06a7a386eea4889cb225e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): android/internal/chooserx/src/main/java/com/mlkit/example/internal/ChoiceAdapter.java:41-45 | android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ReplyChipAdapter.java:48-52 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/internal/chooserx/src/main/java/com/mlkit/example/internal/ChoiceAdapter.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84ad22947ececf6b7dac65a32f8a595f1bb4ea18c2ff378dea51e8eb4d71466"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): ios/quickstarts/entityextraction/EntityExtractionExample/EntityViewController.swift:109-112 | ios/quickstarts/languageid/LanguageIDExample/ViewController.swift:73-76 | ios/quickstarts/translate/TranslateExample/ViewController.swift:101-104 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/entityextraction/EntityExtractionExample/EntityViewController.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a3c5a1a8496fb897e8695eb05352d8edb32dd0eccffa5d27517da7b80496ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:200-243 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:200-243 \u2014 before extracting anything, compare \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt\u0060 and \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a10311a5ddf281e2f95da11742488d21083a2dfe48f95842c77f1ef94b0aaea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt:584-608 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt:613-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt:584\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/OpenPromptActivity.kt"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"43daaee225110996607adf559f5a0b3afce9aa84a1a8c19c44ffae7f26f70628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:358-380 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:367-389 \u2014 before extracting anything, compare \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt\u0060 and \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:358\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab50eae248ba103ffa1f98f8e29cd80da0f338e324b86f3c1a162479e9caadcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:153-174 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:153-174 \u2014 before extracting anything, compare \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt\u0060 and \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0aa3759e161c2c86026aab0b7ec38c2f1f06e3141737ca6883da32f1f7c1f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201338 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt:100-133 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/LivePreviewActivity.kt:76-113 \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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt:100\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060null\u0060 to \u0060R.layout.activity_vision_camerax_live_preview) previewView = findViewById(R.id.preview_view) if (previewView ==\u0060 in one and \u0060R.layout.activity_vision_live_preview) preview = findViewById(R.id.preview_view) if (preview ==\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4aefba3bca1752f7b9d2adeb27d64bb31c832ed37ed7e903090c3a1b82a744"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:339-357 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:347-365 \u2014 before extracting anything, compare \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt\u0060 and \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75f18b30469902a8afc496c90ccf20826659a4c6a0756fc220e36acfc76111d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt:107-123 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/LivePreviewActivity.kt:85-101 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/StillImageActivity.kt:160-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/StillImageActivity.kt:178\u0060 calls \u0060add\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt:126\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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"71137cbaecfeba30ffd61e056df6b2c4e6f571f78956fefc3edf1684b440e0fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/posedetector/PoseDetectorProcessor.kt:65-81 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/posedetector/PoseDetectorProcessor.kt:84-100 \u2014 both copies are in the same file, so extract the block 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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/posedetector/PoseDetectorProcessor.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab0087455c85410bd50355d461cb06bf0069f596a59f5a1e888d6d3a7f7dc19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt:878-893 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt:898-913 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt:878\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29c7257202450b9d5d7d7317c4e5690524d91d61692d76bc98826d18730a452"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/kotlin/MainActivityKotlin.kt:107-122 | android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/kotlin/MainActivityKotlin.kt:142-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/kotlin/MainActivityKotlin.kt:107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/kotlin/MainActivityKotlin.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cf32afb2436b83df713d3596be903afcbbf7101356ae3e88e55b011ce995a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ProofreadingActivity.kt:89-102 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/RewritingActivity.kt:89-102 \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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ProofreadingActivity.kt:89\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ProofreadingActivity.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"16de1e0ec00c443fdcdb03386cddb61acd0a4d3745133ce45f82e959149734d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/StillImageActivity.kt:182-195 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/StillImageActivity.kt:214-227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/StillImageActivity.kt:182\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/StillImageActivity.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c938ba80a070818b81a8bfb33ee2d656158b70785eb1f9f89ac9f36278c834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:177-189 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:177-189 \u2014 before extracting anything, compare \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt\u0060 and \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"35cdee16bca2dbbb8cbda3fa747be62355e940f152edd19360b47380740f4187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechRecognitionActivity.kt:211-220 | android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechTranslationActivity.kt:145-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/SpeechRecognitionActivity.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f99d4984a5810d9f71cbcfb20f6bc9f5fb498b9a270643bfd78ebd4b4f0ae5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/TextToSpeechActivity.kt:268-277 | android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/TextToSpeechActivity.kt:421-430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/TextToSpeechActivity.kt:268\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/speech/app/src/main/java/com/google/mlkit/genai/speech/demo/TextToSpeechActivity.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1573ced1a4046e6be9848cb5c481ba7836690bbc7e2e8229e82d480ef41890c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ImageDescriptionActivity.kt:100-108 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/SummarizationActivity.kt:87-95 \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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ImageDescriptionActivity.kt:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/ImageDescriptionActivity.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92ed3dbc0105d9d148e105b84f1610cda97dd29c5d38fd8d2906cfcc159a08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/segmenter/SegmentationGraphic.kt:42-50 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/subjectsegmenter/SubjectSegmentationGraphic.kt:54-63 \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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/segmenter/SegmentationGraphic.kt:42\u0060 it begins part-way through the construct above it, so those exact 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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/segmenter/SegmentationGraphic.kt:52\u0060 calls \u0060rewind\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/subjectsegmenter/SubjectSegmentationGraphic.kt:64\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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/segmenter/SegmentationGraphic.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6916e386a892d70d7ae1a3ddcb98385210b0dd3ef7f6e5a2bac89c3a0acdd71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:84-91 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:88-95 \u2014 before extracting anything, compare \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt\u0060 and \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:84\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fce00e7f5eff2bc8dc7934b0910814b0f25d731b13de473ac3c300d8e0aa5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt:98-105 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXSourceDemoActivity.kt:67-74 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060null\u0060 to \u0060R.layout.activity_vision_camerax_live_preview) previewView = findViewById(R.id.preview_view) if (previewView ==\u0060 in one and \u0060R.layout.activity_vision_cameraxsource_demo) previewView = findViewById(R.id.preview_view) if (previewView ==\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b99aa53f4abd790750e4fb79d0b00f85eb21fae296c794a4ec5c0316cca7586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/barcodescanner/BarcodeGraphic.kt:56-61 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/objectdetector/ObjectGraphic.kt:88-93 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/textdetector/TextGraphic.kt:120-125 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/barcodescanner/BarcodeGraphic.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9bbf1efdb86af4030c87c4482025332efce9b3b3d85f92d727e76064206d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXSourceDemoActivity.kt:75-79 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/LivePreviewActivity.kt:112-117 \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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXSourceDemoActivity.kt:75\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXSourceDemoActivity.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcbeab16afcd6b50e061765164413cb50ca5b9dad621962120be3899868c961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): android/material-showcase/app/src/main/java/com/google/mlkit/md/TaskExt.kt:31-60 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/TaskExt.kt:33-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/TaskExt.kt:31\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/material-showcase/app/src/main/java/com/google/mlkit/md/TaskExt.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9d08b49bc97ec3976d3b331a3689596962acca7469f149c07e79b6e9a82ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:144-150 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:144-150 | android/material-showcase/app/src/main/java/com/google/mlkit/md/StaticObjectDetectionActivity.kt:145-151 \u2014 before extracting anything, compare \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt\u0060 and \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:141\u0060 calls \u0060shutdown\u0060 and \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:141\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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a23de3f3786a248f89f24cf0ebe0bfcc5d061085a7fec9b716217ad9b3bdd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt:191-197 | android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt:191-197 \u2014 before extracting anything, compare \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt\u0060 and \u0060android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"9366a35e1eebefbcc5fc0bcb1a34bfc2f0aab22bdea0d37bfc72765f0be7f41f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/MultiObjectProcessor.kt:86-93 | android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/ProminentObjectProcessor.kt:79-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/MultiObjectProcessor.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6659dfd1a53a326b5517bb7b7547788f7ad47a12e158100b934ba1b24588a679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/translate-showcase/app/src/main/java/com/google/mlkit/showcase/translate/util/Language.kt:31-42 | android/translate/app/src/main/java/com/google/mlkit/samples/nl/translate/kotlin/TranslateViewModel.kt:186-197 \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/translate-showcase/app/src/main/java/com/google/mlkit/showcase/translate/util/Language.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b42c5b2e65fc845e39f1915267a49ca7c194cb427cc9aa5c25a1efe3c6c6d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentActivity.kt:39-53 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/EmbeddingActivity.kt:41-56 \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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentActivity.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcbad83397a6e520474b7beb14f578ae561e6e5bfc9ef9517073daf1e640e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/kotlin/MainActivityKotlin.kt:27-37 | android/translate-showcase/app/src/main/java/com/google/mlkit/showcase/translate/MainActivity.kt:26-34 \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/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/kotlin/MainActivityKotlin.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f92e7432aa8617b619c61067357beccd2462109d856b3cba9b265dae7aed271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/facedetector/FaceGraphic.kt:178-188 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/facedetector/FaceGraphic.kt:206-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/facedetector/FaceGraphic.kt:178\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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/facedetector/FaceGraphic.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a73e51a15d1166cb500d6a43070de14c2ca951774e056c39d27542a1f96fcd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt:273-282 | android/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt:302-311 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt:273\u0060 it does not close everything it opens, so those exact 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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentDemoAppFunctions.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8df417c54a9517d202f71d1f6cef099b82b9234604fbef4f26d27e5ea936c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:266-339 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:295-368 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060PreferenceUtils\u0060 names \u0060com.google.mlkit.vision.automl.demo.preference.PreferenceUtils\u0060 in one and \u0060com.google.mlkit.vision.demo.preference.PreferenceUtils\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"369a9774e7c5a0dc6e887ff9daffeafec9fd0cb85c036e7e25457be0c73e7aa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56\u201360 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:90-145 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:124-183 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060SettingsActivity\u0060 names \u0060com.google.mlkit.vision.automl.demo.preference.SettingsActivity\u0060 in one and \u0060com.google.mlkit.vision.demo.preference.SettingsActivity\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ad0b928f5f469fc06262db3610428776f9410f5065ed697c3bc527ce890f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectGraphic.java:84-139 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/objectdetector/ObjectGraphic.java:84-139 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectGraphic.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/objectdetector/ObjectGraphic.java\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectGraphic.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bf0489109c37e0de353960c6ff2d0298545ba222d4e3932ba27ae955a4fada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:664-715 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:690-741 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7dcfbb653e1db45009e276b75b4fc052f0a377487a382290017b3a0bd8f6260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59\u201360 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/LivePreviewPreferenceFragment.java:63-122 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/LivePreviewPreferenceFragment.java:65-123 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/LivePreviewPreferenceFragment.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/LivePreviewPreferenceFragment.java\u0060 as WHOLE FILES: 90% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060CameraSource\u0060 names \u0060com.google.mlkit.vision.automl.demo.CameraSource\u0060 in one and \u0060com.google.mlkit.vision.demo.CameraSource\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/LivePreviewPreferenceFragment.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a10f3681638117f0de33c8be963e46a9dd0533c3a11a15da117bf5fce67307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:290-334 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:430-474 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:290\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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: \u0060PreferenceUtils\u0060 names \u0060com.google.mlkit.vision.automl.demo.preference.PreferenceUtils\u0060 in one and \u0060com.google.mlkit.vision.demo.preference.PreferenceUtils\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d684ddb12a50a48556c2d7775b0855eb4682249da303eafbb77e4443d8b3b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java:133-175 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java:109-151 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff4d1893b31aa11ae22c08a7e2b6be4f79d881283f1fd0ac1623fe34f2dfb95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:502-541 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:528-567 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f53e852fdbb4dd6a10047b21e963a48d2cb8f0a07ab679668f892060048177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/CameraXLivePreviewPreferenceFragment.java:58-94 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/CameraXLivePreviewPreferenceFragment.java:58-94 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/CameraXLivePreviewPreferenceFragment.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/CameraXLivePreviewPreferenceFragment.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/CameraXLivePreviewPreferenceFragment.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65e26d25de390f07b37107861dfcd832defbd321f202d3c92e980f966ebd70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:114-141 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:162-189 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:114\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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: \u0060SettingsActivity\u0060 names \u0060com.google.mlkit.vision.automl.demo.preference.SettingsActivity\u0060 in one and \u0060com.google.mlkit.vision.demo.preference.SettingsActivity\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69fc53c7db7c364f381c9aded1797179d3abe52a8ebadd1a06266011c194210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java:200-226 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java:272-298 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46487c57e3859508e9aef143a558a6626151fe9cee352730d2f9df9a3fec4ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java:309-333 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java:196-220 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c7671563b1dfb9e2fe32e1610fc7220d2adf39d80eb6c8abf6bae4c48bbea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java:370-394 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java:257-281 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c6a88a994fe5abf7d6b4261471143b91d6ce885ee9a219552f83c6507d1460"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java:337-360 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java:224-247 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"264d4ae7dca21269982a8ed9ab84108fc4161fdd053199aea4c1bfb5e5a47954"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:380-403 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:487-510 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:379\u0060 calls \u0060i\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:486\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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b5cf1f21c72ceac8dda3ff359ee9cfd47c6f270b5dd673a2e6211f64c52e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectGraphic.java:57-79 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/objectdetector/ObjectGraphic.java:57-79 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectGraphic.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/objectdetector/ObjectGraphic.java\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060GraphicOverlay\u0060 names \u0060com.google.mlkit.vision.automl.demo.GraphicOverlay\u0060 in one and \u0060com.google.mlkit.vision.demo.GraphicOverlay\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectGraphic.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d375c351bb8ae786176e7c23936945d36ae2d83be32310467296b99911c6acdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:311-332 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:387-408 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f42ebb3e9dc9fa10eec49f0ef74a713e656d4ef80d7203d52ce63275ec6bd1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/SettingsActivity.java:53-74 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/SettingsActivity.java:55-76 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/SettingsActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/SettingsActivity.java\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.google.mlkit.vision.automl.demo.R\u0060 in one and \u0060com.google.mlkit.vision.demo.R\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/SettingsActivity.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22032c44e26eba7b125729a107a507a1ad1f96822246738d79ba19ee614783d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:372-391 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:401-420 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadfac9e80f0fa1915bb7c39ea3310e676ade9a0e03328ba7574c8a22692ca77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:626-645 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:652-671 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"008ce2201fdc2e45be2bd0915f56501e27d81f4bd878f3d7c1086d44d749d749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/CameraXLivePreviewPreferenceFragment.java:99-118 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/CameraXLivePreviewPreferenceFragment.java:99-118 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/CameraXLivePreviewPreferenceFragment.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/CameraXLivePreviewPreferenceFragment.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/CameraXLivePreviewPreferenceFragment.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9de5c5f1527acf9320f01141a0d8e009e0348f9302355e3581fb106c721fca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/facedetector/FaceGraphic.java:197-216 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/facedetector/FaceGraphic.java:222-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/facedetector/FaceGraphic.java:197\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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/facedetector/FaceGraphic.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12eb4d9b3e2b86f72ac026b556a5d421dc2b5d3c652556d25887b200ab4b24e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java:181-199 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java:157-175 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5adbe84e8a462f15c8136c20f7bf3b12f4e781c9cab0c9d4265723c32c1252e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXViewModel.java:47-65 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraXViewModel.java:47-65 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXViewModel.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraXViewModel.java\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXViewModel.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1098f20cbaa609823499a96b22e571fde3a2b19675402166484d463d7e4fd747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:84-102 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:130-148 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:84\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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: \u0060SettingsActivity\u0060 names \u0060com.google.mlkit.vision.automl.demo.preference.SettingsActivity\u0060 in one and \u0060com.google.mlkit.vision.demo.preference.SettingsActivity\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d088006675a50cf53f24a3a4a89219bd6c1393eb4b22d8a20f85a8b3452f74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:168-185 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:239-256 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:168\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2fcd826dcee4a5fada59eed2358127aaff38113a7a7621472d5045269a1f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:260-277 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:331-348 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:260\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff4e3cbe0d5e24694e1d6c10b1c4743a770eef715120706245f7b20708af542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java:48-65 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java:56-73 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060CameraSource\u0060 names \u0060com.google.mlkit.vision.automl.demo.CameraSource\u0060 in one and \u0060com.google.mlkit.vision.demo.CameraSource\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6481b95ced5e6407b99dee223365b0bc0188002797e02f6b3dea83fb64a74cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:141-157 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:109-125 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:215-231 \u2014 before extracting anything, compare \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:233\u0060 calls \u0060add\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:160\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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"568e7fe6b20946e1744cc4606c31220c0031d5ec02a8cc7347c30ebe4fa3e237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:205-221 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:195-211 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:205\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edde2df1f7df065effce25ca831b5239cca821a075195361187a807ff0f2e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:551-567 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:577-593 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f371b2e56e8f30841294d74f47ed026a2d63591ee8b29c6e21e8744f8c57a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:101-117 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:71-87 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c8b46b8d0fa083171de00f4dac1d9a4a3c932960382c7ccd760d4717139358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:222-238 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:272-288 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060PreferenceUtils\u0060 names \u0060com.google.mlkit.vision.automl.demo.preference.PreferenceUtils\u0060 in one and \u0060com.google.mlkit.vision.demo.preference.PreferenceUtils\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afc8430020e66c75c14969d0e281a963911c0cb43683caabc345909d9a3ad52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/java/MainActivityJava.java:114-130 | android/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/java/MainActivityJava.java:156-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/java/MainActivityJava.java:114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/langid/app/src/main/java/com/google/mlkit/samples/nl/languageid/java/MainActivityJava.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4619c2f52d626adbbbc8f6017ae0f0028a1c1e52408d8a82aa4d699d554495c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java:92-107 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java:89-104 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd4bf83a896a14e23b86296c30109f59c5bab7c483e74e9aec5a2a2f8ca83b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:430-445 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:456-470 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"226c5c47a9c87467c73622307616f25ae5c7ca371d5e4e9744e5331b223924d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java:130-145 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java:130-145 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ea0d429b1ad630e5b5d0d40bcfc555391349f5182c76bcb9575a6733ffbb70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:192-207 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:329-344 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12a67e9aff86f6d0116259c69ce4862871a1c0bdbc1ba356851e0be89fb6d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/posedetector/PoseDetectorProcessor.java:99-114 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/posedetector/PoseDetectorProcessor.java:118-133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060image\u0060 to \u0060InputImage\u0060 in one and \u0060MlImage\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/posedetector/PoseDetectorProcessor.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"80edf0f2dedf5c4c3f1c5948048cd440b2c75f9858a3014858d7a6d21f69476d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java:86-100 | android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java:152-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java:86\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted 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/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e7a76fc239746e308a7e1aa7b7019b196008a6509dd065c61bc1cc5789a3de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ChooserActivity.java:89-103 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/ChooserActivity.java:77-91 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ChooserActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/ChooserActivity.java\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ChooserActivity.java:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ChooserActivity.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5537425868c7bebb337ab8203f7dae0b65652db16f0d3a635cffeef53451ba03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/LivePreviewPreferenceFragment.java:45-59 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/LivePreviewPreferenceFragment.java:47-61 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/LivePreviewPreferenceFragment.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/LivePreviewPreferenceFragment.java\u0060 as WHOLE FILES: 90% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060CameraSource\u0060 names \u0060com.google.mlkit.vision.automl.demo.CameraSource\u0060 in one and \u0060com.google.mlkit.vision.demo.CameraSource\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/LivePreviewPreferenceFragment.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7993aa0d368aff2070e0b6305ab42b126d62e4c4295c72f8914c37dc8c9bb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java:82-106 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java:82-106 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060PreferenceUtils\u0060 names \u0060com.google.mlkit.vision.automl.demo.preference.PreferenceUtils\u0060 in one and \u0060com.google.mlkit.vision.demo.preference.PreferenceUtils\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c40bfce5e9db01d2ebf942ee39584cc1c5e4b23604646d56fca27189036769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:269-282 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:156-169 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fae1e97771bd15d33f412b8e5756a4fde5491af727f3efdba86e6495ff98e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:295-308 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:371-384 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:295\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b711aee7e668ed362d03df68c0ef8f21ac78710c547e4615bc3b4da5bb2f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ChooserActivity.java:164-176 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/ChooserActivity.java:115-127 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ChooserActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/ChooserActivity.java\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ChooserActivity.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e67a552985ec25ab35dc639d5b973cb62263f53a1915d12915c98462fe441e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:172-184 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:309-321 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:172\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be47574d5e4d4925e27c4e1094c2a8d2df57adda011b14f5123540f246dface"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:256-267 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:338-349 \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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:256\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8c49a627bc059c64b20d4a7f1866e6f0d9587382fcad862ba8f1e16fa4119c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/LabelGraphic.java:43-54 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/labeldetector/LabelGraphic.java:41-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060GraphicOverlay\u0060 names \u0060com.google.mlkit.vision.automl.demo.GraphicOverlay\u0060 in one and \u0060com.google.mlkit.vision.demo.GraphicOverlay\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/LabelGraphic.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"871925e5310037e59e55367fa0ec77c2d2622ab6bcf27f50ea28f2cc09326cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/CameraXLivePreviewPreferenceFragment.java:43-54 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/CameraXLivePreviewPreferenceFragment.java:43-54 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/CameraXLivePreviewPreferenceFragment.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/CameraXLivePreviewPreferenceFragment.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.google.mlkit.vision.automl.demo.R\u0060 in one and \u0060com.google.mlkit.vision.demo.R\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/CameraXLivePreviewPreferenceFragment.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75f8db5f4910d403dae231fc0dcdb9d1f253e3aeaaf2fb33a0b73b6718f1d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:166-176 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:195-205 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:237-247 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:267-277 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:190\u0060 calls \u0060add\u0060 and \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:161\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"9026692d458da412aa227acd442b556bdbefba208d182e02cbce78111b3bcd00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:107-116 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:77-86 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:161-171 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:161\u0060 it does not close everything it opens, so those exact 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"07069a49b9b61779e0d1df3be9534a82e883a7ebcb63411fde00fa6e1a1d8ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java:73-83 | android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java:133-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"088c27079237612baae5ea5490e1a07ca7d6fee3eaf775495c06b49fc036a400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java:52-70 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java:49-67 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"afff4e825162227cdf3fab81ac42e9875921c4f00bb5c1ff395dfa4871d212ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java:77-87 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java:74-84 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/BitmapUtils.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/BitmapUtils.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e573fd52f1d4ee644830701bd1cbae75807ec593ac04cb33c9f631fcb119ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:167-178 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:213-223 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:167\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a04c1ea46667547ac5fc7db3647b78f5f761eaa7f9a3bcd83ea811ddecd519e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/translate/app/src/main/java/com/google/mlkit/samples/nl/translate/java/TranslateFragment.java:137-147 | android/translate/app/src/main/java/com/google/mlkit/samples/nl/translate/java/TranslateFragment.java:150-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/translate/app/src/main/java/com/google/mlkit/samples/nl/translate/java/TranslateFragment.java:137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/translate/app/src/main/java/com/google/mlkit/samples/nl/translate/java/TranslateFragment.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f411689f544075f45f4c18125c31a6ec71cf7bc72238b1f1b98a8800c97664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:168-177 | android/documentscanner/app/src/main/java/com/google/mlkit/samples/documentscanner/java/MainActivity.java:138-147 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:239-248 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.google.mlkit.samples.documentscanner.R\u0060 in one and \u0060com.google.mlkit.vision.demo.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:178\u0060 calls \u0060createImageProcessor\u0060, \u0060tryReloadAndDetectInImage\u0060 and \u0060android/documentscanner/app/src/main/java/com/google/mlkit/samples/documentscanner/java/MainActivity.java: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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e65fa9533599cf5f34caf89d44ff2b9324bbaad1b997ac24bb79ab42d2fe0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:97-106 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:131-140 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e62ddf54ebad4da87fb5f6afe6a021975d6461c32597c6182f8107fadfaea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:248-257 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:319-328 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e031572e66ce4a5eb06e5929daa8d9ab746facb67ea6bd9795f4eee48ef2720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java:79-88 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectDetectorProcessor.java:77-86 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java:79\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"345cba9a6967a86430e68f347a5a98a73f3ddb18c805856c6c7efab26829d3d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java:74-83 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java:82-91 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.google.mlkit.vision.automl.demo.R\u0060 in one and \u0060com.google.mlkit.vision.demo.R\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb192174e2a0180860199059ff9e4d8c30e1f57156b7d0f5db515d4bcd3804f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:99-107 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:69-77 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:133-141 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:101-109 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:99\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae81bb871a0cac1849983c7ec098490ff7723e958ed15f88fc4d07f6e69d950b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:112-120 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:82-90 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:160-168 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:128-136 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"603ab064a1c041a130b926335c803f3699cbd53acaa382cb175b050c34a4dc83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:89-96 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXSourceDemoActivity.java:86-94 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:135-142 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: \u0060SettingsActivity\u0060 names \u0060com.google.mlkit.vision.automl.demo.preference.SettingsActivity\u0060 in one and \u0060com.google.mlkit.vision.demo.preference.SettingsActivity\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"60936adbbb708be2d21675f3418e5fff531c9c13a15c944755985aaefc5ad6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/android-snippets/app/src/main/java/com/google/example/mlkit/ObjectDetectionActivity.java:94-102 | android/android-snippets/app/src/main/java/com/google/example/mlkit/ObjectDetectionActivity.java:151-159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/android-snippets/app/src/main/java/com/google/example/mlkit/ObjectDetectionActivity.java:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/android-snippets/app/src/main/java/com/google/example/mlkit/ObjectDetectionActivity.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bf921017bf01e6d36cfa67825a46ad5fd5811e4a0b8b22f345ba80c692cd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:97-104 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:131-138 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXSourceDemoActivity.java:77-84 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bafc38d798f1c64b5da7409204f020ab0413fcf73d53a7c2e96e815e19b886"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java:97-104 | android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/object/ObjectDetectorProcessor.java:95-102 \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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java:97\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/AutoMLImageLabelerProcessor.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb32726c0b21769f5d3e8e0e5ed5277299c4d869de6b576c90bb9bd283c7384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/segmenter/SegmentationGraphic.java:61-68 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/subjectsegmenter/SubjectSegmentationGraphic.java:81-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/segmenter/SegmentationGraphic.java:70\u0060 calls \u0060rewind\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/subjectsegmenter/SubjectSegmentationGraphic.java:90\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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/segmenter/SegmentationGraphic.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"35aa748bb3c0f8e3b6be9a85c14c3fef4df2ec59009a232103959777f57d3388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:225-237 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:296-308 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7d7733b65c412dc1dedc01d3bebb918206828f082ec95a4c0b2570f10eaa23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ChatFragment.java:197-203 | android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ChatFragment.java:213-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/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ChatFragment.java:197\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ChatFragment.java:210\u0060 calls \u0060add\u0060, \u0060Message\u0060, \u0060getTimeInMillis\u0060 and \u0060android/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ChatFragment.java:196\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/smartreply/app/src/main/java/com/google/mlkit/samples/nl/smartreply/java/chat/ChatFragment.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a344b49d059558262a2e1c561376be2ffc16ef7b4ae888f2f4c0b8ee6811259"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/barcodescanner/BarcodeGraphic.java:74-79 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/facemeshdetector/FaceMeshGraphic.java:99-104 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/textdetector/TextGraphic.java:150-155 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/barcodescanner/BarcodeGraphic.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"43be09dc77c8658939463474cf653496dfec3c5f82f4822667a763577649f467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/LabelGraphic.java:59-63 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/labeldetector/LabelGraphic.java:57-63 \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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/LabelGraphic.java:59\u0060 it does not close everything it opens, so those exact 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/automl/LabelGraphic.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"759832fe18ea39be0e052dbeba4d5086dceb1d59c3755a14272f52b71e942a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/FrameMetadata.java:1-68 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/FrameMetadata.java:1-68 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/FrameMetadata.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/FrameMetadata.java\u0060 as WHOLE FILES: 97% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/FrameMetadata.java:1\u0060 it does not close everything it opens, so those exact 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/FrameMetadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e37cb979c1bf46a14fc0e03e7b42325b6635e2701c36144d84e4855f4f97fcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ScopedExecutor.java:32-60 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/ScopedExecutor.java:32-60 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ScopedExecutor.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/ScopedExecutor.java\u0060 as WHOLE FILES: 97% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/ScopedExecutor.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02a9d5e4e97f56613fda66f9ef56870748337435261f4d195969bf4d73ed7f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:135-144 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:128-137 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bba205cb1ac2e54a7a27128815f5167c173bbc7b6d8411531cc5f77232a3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:239-244 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:227-232 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"390f3f42971e69235d69324625ec3ab04951e71dca3d359005e29577443f2c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:347-356 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:376-385 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fe2ba1e625b2f3a7c787763be3077e9d0cd495acb94d358c179815dedac75c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java:581-589 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java:607-615 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSource.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1e9a3a4346305f01173fdc41e5b5a52cbd78b20bce377a0010fd0e778561e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java:42-51 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java:42-51 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe6e7860eaf13791cf7f26bffc44e0ac290657a5a1b33e0d50194b936406503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java:73-79 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java:73-79 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"961f6e7de89776b7bb9ca92d04494cd5a97f619318bf3d8a8158cd352e739248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java:110-117 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java:110-117 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ecea76b7de2f7bf8700f43e332c219a1e7ff4c5a074265274b3ba6c29c2638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java:166-177 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java:164-175 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/CameraSourcePreview.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSourcePreview.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"13536f7e6332c5ec95de99f4e61629e4dabef42534d259b29df2bb26bbe0ce6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:151-157 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:198-204 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java:147\u0060 calls \u0060putInt\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/CameraXLivePreviewActivity.java:194\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraXLivePreviewActivity.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a07b4907098feefc7efa1f5cc5fb872b693729c0fa01a734561bf92ab3b1a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java:113-119 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java:125-131 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb09099ab01817b38f6b1de1fc2b7ee4e04ed5b2b4f106fb1657894d99de2bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java:140-145 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java:212-217 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f2b4c51484c4ed148f839d229baae2944e4f4def5d98da85b115ee7a3849be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java:179-189 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java:251-261 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc7bfbd8e92260e6e85cffd480dcaad51fb21fab03c3e7f42afa0e031e13263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java:230-240 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java:302-312 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/GraphicOverlay.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/GraphicOverlay.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"95657677ea9daff64b92e0601d7a03ec9a4df1b3a5bbe7487b1adb8a8e1056d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:105-113 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:151-159 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bbfcd3f7b99d614e3f584828494f5214fbb6953196e714298c3757987deba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java:121-132 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java:167-178 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/LivePreviewActivity.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/LivePreviewActivity.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c72e29c6ef2ea481ecd92a6f328d39101819a8ba7dc38f287f5a46e00f29374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java:239-244 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java:310-315 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/StillImageActivity.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/StillImageActivity.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c3f34435014f427bb21f3d85e32c68b15dbca05296352e0478c482dbf116f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java:113-119 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/VisionProcessorBase.java:149-155 \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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java:113\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0bface24736f23ceec46b9eecf14e0735b8e044ebcd02853870b284e14d0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java:121-129 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/VisionProcessorBase.java:157-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/VisionProcessorBase.java:169\u0060 calls \u0060elapsedRealtime\u0060 and \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java:135\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/VisionProcessorBase.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6549fafad4eccc18ef21219d33a187be48bd427d5624a4df850aa582baae1b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java:89-93 | android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java:363-367 \u2014 before extracting anything, compare \u0060android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java\u0060 and \u0060android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.google.mlkit.vision.automl.demo.R\u0060 in one and \u0060com.google.mlkit.vision.demo.R\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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4841acbfbb7a295b18d6e33c5e89c0443caa068e6de5253be310b83508c2f668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:403-433 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:573-603 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f980d5919afdd4505b3938cb7ab8d1bddb1069e9fa04d6266f820ed7e004ee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/ViewController.swift:63-93 | ios/quickstarts/vision/VisionExample/ViewController.swift:67-97 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/ViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift:63\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift:61\u0060 calls \u0060isModelDownloaded\u0060, \u0060remoteModel\u0060 and \u0060ios/quickstarts/vision/VisionExample/ViewController.swift:65\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":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa06579dea530c408ca296e2f710efb5e32d6f997ce7ff9b55b92de7b59d9337"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:224-245 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:420-445 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9e3c99981a0bd87df2121085b713f5cdfed10ce90cc217478d3e5cb5bbdd44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:131-155 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:488-512 \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":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"150cbea0c1b4051176dae8cdc61b74237b53547062c41f407cf33d270129ecf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/ViewController.swift:256-279 | ios/quickstarts/vision/VisionExample/ViewController.swift:265-288 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/ViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84e96364040c6feddc5d3af9f00b56d5233019a97b7f12189f47207c769efa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 3): ios/quickstarts/vision/VisionExample/CameraViewController.swift:137-158 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:193-213 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:238-258 \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 \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"1292fc08d50237bb14033316912c657f5397ff0e94ff5b711f177c4dd73bc36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:102-123 | ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift:99-120 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift\u0060 and \u0060ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"130c70e92da543c2c12fb7e891e64998a7254480275d0d176ea66e5dfd3fa2d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 5): ios/quickstarts/automl/AutoMLExample/ViewController.swift:449-466 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:518-532 | ios/quickstarts/vision/VisionExample/ViewController.swift:688-705 | ios/quickstarts/vision/VisionExample/ViewController.swift:860-877 | ios/quickstarts/vision/VisionExample/ViewController.swift:931-948 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/ViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift:449\u0060 it does not close everything it opens, so those exact 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":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"173792e7d50e84fbf4a687c1b92c75eca655aed1be74c5501b1233e37d908505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:52-74 | ios/quickstarts/vision/VisionExample/UIUtilities.swift:77-99 | ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift:50-72 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/UIUtilities.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d292291405c7d476602dd3d8143898f63d03ed79585dc5939ef398490d22ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:79-96 | ios/quickstarts/vision/VisionExample/UIUtilities.swift:104-121 | ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift:77-93 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/UIUtilities.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:79\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ios/quickstarts/vision/VisionExample/UIUtilities.swift:123\u0060 calls \u0060fatalError\u0060 and \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:97\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":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"689259e8c62583443b4d8d4a81d04343f8ee49f0b1f7bf63f783e551e5ac2d1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201317 lines \u00D7 3): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:191-207 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:514-530 | ios/quickstarts/vision/VisionExample/ViewController.swift:1046-1049 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8579668022a94a953d4d06c87a76b1a8314c3ee5aeb4857311b478e678f17b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/ViewController.swift:211-227 | ios/quickstarts/vision/VisionExample/ViewController.swift:218-234 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/ViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9f8bc92c375e1c110b93799427801a7c208ad55f54f5cf269d9a723ff6d4af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:376-391 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:545-560 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:376\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a92d5471d932ee820c9daa7fa4a56442df5cfd18b891b8e8dfd640e87a8f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 5): ios/quickstarts/vision/VisionExample/CameraViewController.swift:140-154 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:196-209 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:241-254 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:340-353 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:439-452 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:437\u0060 calls \u0060joined\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:139\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":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd08f4bedcaf8c356d10d1cbd09f73e39b2e5296ee4ca4e78c6d0e19e9da870d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): ios/quickstarts/vision/VisionExample/CameraViewController.swift:151-163 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:206-219 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:501-514 \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 \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:151\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6978ba8799920a7b4de6da123d95754d6198a0e01d82af33128fbd228460053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:342-354 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:331-343 \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 \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:342\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0084bf7eeee0dcd8ae69f1674d210fb59df72a961ac225b1108abfcb0fc96e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:29-41 | ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift:28-40 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift\u0060 and \u0060ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:29\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":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca0a385a973cfd7d56d13615e546a7585b51a4ee746c000c23a0351a02c8831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): ios/quickstarts/vision/VisionExample/CameraViewController.swift:162-174 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:383-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 \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffb1fe0bb843ad12f0a9debd9741e1680308844ec6e0a92130d9a8d4221156d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): ios/quickstarts/vision/VisionExample/CameraViewController.swift:711-723 | ios/showcase/translate-showcase/TranslateDemo/CameraViewController.swift:365-377 \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":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce65eb34092abf5879c987bf928dc004980c032ebf59a709d9ad5665d7f6efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:190-201 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:218-229 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:513-524 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd93f7a7b65660504086ba90414ce1e4fd7d85434ff97add35a9f89adc33a739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:184-193 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:156-165 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:211-221 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:507-516 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adf8109f1b5fe1c7e56b91390f4d28262ff523b468f27ac6daa8b77e551ac12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:470-480 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:648-658 | ios/showcase/translate-showcase/TranslateDemo/CameraViewController.swift:353-363 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:470\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b1f89468809491a52ca0e1680f908786f3a78a64593cbe72f92365aaaeef16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/ViewController.swift:230-240 | ios/quickstarts/vision/VisionExample/ViewController.swift:237-247 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/ViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift:230\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4664e03cc766548f1e4fbdd3f743102a4932ed20776e9771fd1bd9f725204b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): ios/quickstarts/vision/VisionExample/CameraViewController.swift:752-761 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:763-772 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:774-783 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:785-794 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:752\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"221028317d3fed436433d370c5cc84c87ef276759eb11bc023322e52e1fca1c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 6): ios/quickstarts/vision/VisionExample/CameraViewController.swift:822-831 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:833-842 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:844-853 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:855-864 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:867-873 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:878-884 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:822\u0060 it begins part-way through the construct above it, so those exact 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":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"773b457f98fb1117166220be6aafb14ac85dd1d8999b0df4fcc6e3e0bd7d0e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:26-35 | ios/quickstarts/vision/VisionExample/UIUtilities.swift:27-36 | ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift:25-34 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/UIUtilities.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:26\u0060 it does not close everything it opens, so those exact 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, \u0060ios/quickstarts/vision/VisionExample/UIUtilities.swift:37\u0060 calls \u0060isValid\u0060 and \u0060ios/quickstarts/automl/AutoMLExample/UIUtilities.swift:36\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":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b43b70c0b1c8cc4fd7f7df950f16f10f2b10fa981a466c878c5c402fcb7012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:449-458 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:627-636 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd8f9db4b569dd90481c79f07010cfcf59e9cb7fc07ca413c3372782e83f750"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ios/quickstarts/vision/VisionExample/CameraViewController.swift:725-734 | ios/showcase/translate-showcase/TranslateDemo/CameraViewController.swift:379-388 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e7dca28e516543ff7695d60e5893550001a534d5f269b6a221738f9820aa89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ios/quickstarts/vision/VisionExample/CameraViewController.swift:798-807 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:809-818 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:798\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/CameraViewController.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a25ea6e1daf4f5c2a1dd1d2e6bde58b25f514bde50143cef17fda5147137142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ios/quickstarts/vision/VisionExample/ViewController.swift:563-572 | ios/quickstarts/vision/VisionExample/ViewController.swift:763-773 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/ViewController.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b26c8dbd2ecc3b5be2b24e8d742c65dea2e93befc2f0b4bae6efd2df62496fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:188-195 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:160-168 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:216-223 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:381-389 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:511-518 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ee2d2f954a81b7695f120de6cbf40e432e6adf128914a8e5635b165c10e8b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:460-468 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:638-646 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd6ffe3cf144f80c4f16d2f59b6f71c859e9706512eb54940dab8ab6b3c73b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:317-325 | ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:344-351 | ios/quickstarts/automl/AutoMLExample/ViewController.swift:333-340 \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 \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:317\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b68be9e91abd977ee720e492fd488311c51051955dd3dd2d0a4f9676af22978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:204-213 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:527-536 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift:537\u0060 calls \u0060rotate\u0060 and \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:214\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":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f00b3fa997a285abba451e8914f39afa6e2943d250f0ea3a5e41c03ccc93fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ios/quickstarts/smartreply/SmartReplyExample/MainViewController.swift:227-232 | ios/quickstarts/smartreply/SmartReplyExample/MainViewController.swift:244-249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/smartreply/SmartReplyExample/MainViewController.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"31071fba6992e103f483a846b63fe8b0eaf2519883985c5881d346bad78cc776"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/CameraViewController.swift:62-70 | ios/quickstarts/vision/VisionExample/CameraViewController.swift:87-95 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/CameraViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/CameraViewController.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 145 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/CameraViewController.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d3818c613482aad2dd2150550565549079c08cb77efa1f361a1e15c4f6a445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/ViewController.swift:158-168 | ios/quickstarts/vision/VisionExample/ViewController.swift:181-191 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/ViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bea2b73100e1db440b09464f5478ce78f95e9bcc28ecbbc5d088013b3e46a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/ViewController.swift:170-174 | ios/quickstarts/vision/VisionExample/ViewController.swift:193-197 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/ViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9adc2e811cd6e4631ff79bc9c4a6bc8b0721743ba9dbaaa106549def0da6cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ios/quickstarts/automl/AutoMLExample/ViewController.swift:608-612 | ios/quickstarts/vision/VisionExample/ViewController.swift:1200-1204 \u2014 before extracting anything, compare \u0060ios/quickstarts/automl/AutoMLExample/ViewController.swift\u0060 and \u0060ios/quickstarts/vision/VisionExample/ViewController.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc83c1dd18a1207d92e97de59664ae9ae2094cce31a2ec61f6c400426bb7ff62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ios/quickstarts/entityextraction/EntityExtractionExample/EntityViewController.swift:94-105 | ios/quickstarts/translate/TranslateExample/ViewController.swift:82-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ios/quickstarts/translate/TranslateExample/ViewController.swift:95\u0060 calls \u0060textViewDidChange\u0060, \u0060translate\u0060 and \u0060ios/quickstarts/entityextraction/EntityExtractionExample/EntityViewController.swift:109\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":"ios/quickstarts/entityextraction/EntityExtractionExample/EntityViewController.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b08416dd1cdf3624934f53ef1b19fe79c925381759087b575fa3881ee159b12"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(b/74400062) Re-enable the annotaion \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/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/CameraSource.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e389d5323ea0c19e3693969b1cd562e224aac724fb9653a70ba88b1d3f1dfae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO How do we document the FrameMetadata developers need to implement? \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/android-snippets/app/src/main/java/com/google/example/mlkit/MLKitVisionImage.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6c911f9b1e7879e61abc3bfa8c599fe61d5b8998ee14ade695d15e94880786"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO How do we document the FrameMetadata developers need to implement? \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/android-snippets/app/src/main/java/com/google/example/mlkit/kotlin/MLKitVisionImage.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5133a904c4cd32d04de057a11d7012aa0b9fe3ca546ba1e5d9c0a9e515a9a3"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060ios/showcase/vision-showcase/ShowcaseApp.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/showcase/vision-showcase/ShowcaseApp.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1192a3a3e8b6cd6b5442f6d4ff89b262f8303432a69c7744ed729ef969383ad3"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 25 project(s) overshoot their size bounds, lowering Project Cohesion to 9.2/10. The most over is \u0060android/vision-quickstart/app\u0060 (11261 LoC, 104 module-visible types across 23 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"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":"d26c49c505397ffc8c9e2ac6bd02b509b1053a608a3ebb8425adc1e5035f106d"},"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":"28cffa5bdb9e98d9fbd60f8fa867de64bc09942aebe585b537db16f9f7530121"},"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":"85ea199dcc76bbd6296ccc881cae79cd9a0552cd7fb45abae2f76f8d98914f93"},"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":"b68758b9f17c02ba71480f697e7e23e96b7d867c6b61c9849b1637c92d5ca751"},"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":"86128ee7234128c91c0822f78bb316211bea42e59d453263223cb0c199b12d39"},"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":"23635b2e662780b856933434489b99312d0e16a168354fe9b85571062cd9f904"},"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":"e856138d42e3127037de0df8277899524afb586908f07f1628046953759ba77a"},"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":"0a6d568fe508e5f321dc167c7b0e241e1c6a5f56e92f9a3eefd8024023df71c2"},"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":"955899a3223ae1ac83983d37bd9446ae63addb5bb5045b096ccdbe34bad428c5"},"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":"53db0d2cd1e1c939c512c447594816c291a7fd1c3822d4069f3ee53b681a3d2f"},"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":"de4965876755e353c1bd3cc845510da08e6f00627d6633013e2334bb55ef1912"},"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":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/vision/VisionExample/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6450372b3176fefde85da57fc4f64ed25450d7077583fc28a3524c924376053e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/camera/CameraSource.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b30b27db61a4d45c92656e8477fccb8a66cfa4476bf83ee68ec65260b26b6a"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 66 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt, ios/showcase/translate-showcase/TranslateDemo/CameraViewController.swift, android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/StaticObjectDetectionActivity.kt, ios/quickstarts/smartreply/SmartReplyExample/MainViewController.swift, ios/quickstarts/digitalinkrecognition/DigitalInkRecognitionExample/ViewController.swift, android/translate-showcase/app/src/main/java/com/google/mlkit/showcase/translate/main/MainFragment.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/Utils.kt (and 58 more) (68 orphaned of 213 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 213 of the 340 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c13ba3e8ab98bf003588402e6d95b2138bdc7314b58c101b5230915450403f7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/showcase/translate-showcase/TranslateDemo/CameraViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"239915de6c7dda386c70edf1b41a4361f78f3b5c648b9fe36bcb3c15a1318cc7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c306a5fae9363c54bfebd8a21f7ecf3f44730979768f9002b6c1e1260c4d0f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/StaticObjectDetectionActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b36450cf8adb4ed3fc193ca2ee013520aa71198ecd46b9ba2b94df734b93a23"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/smartreply/SmartReplyExample/MainViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54bd4186ee48a1942bdf0f560407a5a9a42960f0e5dde926b7c35a195b05aef"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/digitalinkrecognition/DigitalInkRecognitionExample/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fa9ea525b59b6545a1f92c95c5add984e05e626c9877f62e71a89a61e72b4a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/translate-showcase/app/src/main/java/com/google/mlkit/showcase/translate/main/MainFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb96ba0ffe749ace4bb7abc8317876108f3cf8657acf46cc09aca28421e3b2f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/Utils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef5102ff8ccb44a3f9d983d9b3c226f2cec97a970cba4b31288966e07716118"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/translate/TranslateExample/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7304541cdacc54302531742cba1522d6416791c37c42de355588ff491859dee6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/digitalinkrecognition/DigitalInkRecognitionExample/StrokeManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3585bb0cc21060ece5cdaf1252e4fd25f1f9be0f83f338dfeeb367e7e23d363"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/MultiObjectProcessor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"666f646f1b76d1065bebd389c1399aa26d672836fc031d891e58ad91ab8f1f62"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveBarcodeScanningActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21100bc020216efdf568eb2a7a275e308759e83d0333e626b77b2245272e6918"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/ProminentObjectProcessor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9fe2ec8412d5ddffbd0b84de59644adaf85b2fdb53df0f6dc91411e475743d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/FaceDetectionActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bec85f16988330dc67c56d73118817bb3cdeebf0cc3b5136ee7ffac703c9298"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/showcase/translate-showcase/TranslateDemo/SearchViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1ca663cabff93ebec757ba81a0b1bd953e7c751532a140a894aefa8fe50a08"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/ObjectDetectionActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22aef78fd57ee1ca61b85f97ded725dc716ced70eec4c022499c3f6d02a0fe02"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/translate-showcase/app/src/main/java/com/google/mlkit/showcase/translate/main/MainViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1ae23a5eaa89994fc9ea14f1f91fbb54608346d99fac4b9654bb27d116ce34"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/productsearch/BottomSheetScrimView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33db348f9e13662541ad5f9e588849543666a371924e5ed99643aece8fda326"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/ImageLabelingActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bfcbdda74d41673ed5c97b42377d12a978edb632ea9c0dfd3da89538e17cd4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/kotlin/FaceDetectionActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b4313a7ec4d8ae85e576869fa4fc249bdd93c9dbb101be6b3cf0ce14627387"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/translate-showcase/app/src/main/java/com/google/mlkit/showcase/translate/analyzer/TextAnalyzer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96d300d2b63ec0999927e7cb248dc5d7874ceb1365a7a7f0aef6b26a2303138"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/kotlin/ObjectDetectionActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58eb6c3e8ac4d47da6731989b3a3ec16d4a73323a93803e04859cc4365b368a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/kotlin/MLKitVisionImage.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ee3756982880387b36123c7d3b0a37cf23a87c04849dbcff616e4975673a3f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/MLKitVisionImage.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5ce9d5b5db805559ae4684dc324c641b6fa3fa473a36e12ab65830b796d106"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/TextRecognitionActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2011e14c5e650b1bc851892b98b4b8fb88d7d3459e9f365e968ebd422fab6f5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/camera/CameraSourcePreview.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5782b225db65f7795cac39bf1266f71f4eda867baaf0df48b0429c92c17ed970"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/barcodedetection/BarcodeProcessor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0041614790e957ed19e4cbac42ba17dda0fcd7b7f046364f0fc4493737f6ccef"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/ObjectGraphicInMultiMode.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6490274476cbdc9a251e452855cf063084ea8826bb421a9812c885b22b951d44"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/MainActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cbecfc4d22cc761be3fbb668651d2844d94b6a58100448cd1af54ecc887262"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/ObjectGraphicInProminentMode.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a355a6b9c076de942f8974789098dfb361b6efe1e5cc1c355628ceafda29ac"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/ObjectConfirmationGraphic.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"195965fa6db759254e567e0f01b4d403acf408ecb0a93af97bca1003ed1f044c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00305731c91a01f564575b809e77128135d6088687cff485d575a8728bd8cbe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/camera/CameraReticleAnimator.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b272642ca65e12920ab424145400ac072fb8ae946bae70f6050ba43496e0dfe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/camera/GraphicOverlay.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2b32f64e392d1c53e4e630237f692b313d530176889c562d2dbbd89d6cf620"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e761feec081fce60b85524f6c7ff40f885c90c91084cd9b29769468a258cb7b2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/LanguageIdentificationActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"601dfb43ce366bb6a5aff3fae54c37450a249edb55b70a1cf6d8cd34bff11aaf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/camera/WorkflowModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e339794e88f3674c3fcf7d635c831266f8c67cf903f16e6bd47b023c6acef13"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/BarcodeScanningActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"514e2a9a5ac6dd083a6a9647edff0adc2c35f04e4aaf845cc97e8481e9f6602e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/ObjectReticleGraphic.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d7b8525b7a1df46a0690b4822a87f8d654c167f5fbef09ad5a3715fcc929ef"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/translate-showcase/app/src/main/java/com/google/mlkit/showcase/translate/util/ImageUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ada783a7e7c90bfbf1c4d14b84f7575531088f68c25a2a255ffe4a04ded383"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/camera/FrameProcessorBase.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3eec443b2fd105772d4ed4632279aba5dbffc348ee2b7b50714a6bc4e90f1c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/barcodedetection/BarcodeLoadingGraphic.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"947cf88ca500cf3f9fccf6533df8db3bf1e37690136ff0096367bdcfb1fdae4b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/kotlin/ImageLabelingActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce589cb3dc69aa1fd33821baf4e1ffeca1199d7c07aab3cb311272a01283dd8c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/kotlin/TextRecognitionActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f28b02eece554b5ccfcdaf9e6567d6b8b2aba870ae9a73926adfe8129a5f69"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/barcodedetection/BarcodeResultFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf928581c18d39e3088e44796ddf8dde91935090148df5d8d480ce0de8265cd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/productsearch/PreviewCardAdapter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ea9b0e89b452b70d0ba23e8fec0c509c91dce16f21d8403c77cbb5067d5029"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/settings/SettingsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a080037b843d5bdf4c53e3e122286f12a25d65db0d8c525091664e139d8bc5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/ios-snippets/swift-snippets/ModelManagement.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7105a9eca9edca13daed10857c820ec81f645965d9210b2fba53d508a8dd9f3a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/ObjectDotAnimator.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea548a8b20f5fbb4978905500271b6eb2dee75c29c58732409caaecbe95ca551"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/smartreply/SmartReplyExample/UITextViewPlaceholder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4305950e0e63ef058a31bc44fb2bd13aee239ad62dac27d2934e9c4b40c1742f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/DetectedObjectInfo.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0963e174cfa49464bd0c916055a1b8d703f667849d8e58e57994a81ed206ed12"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/showcase/translate-showcase/TranslateDemo/CameraOverlayview.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"600a5a630b39cb4c0b5f03a0f3d017973a1f4a7661e0becae5cb68dfd3d03796"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/kotlin/BarcodeScanningActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e3e60e2d329b0295f51e96cb6ae5487b60fdfe669651653e9469bdacbfc559"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/objectdetection/StaticObjectDotView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca8116698a8b2e06eca54c4c5a57344e47c8095db4a8aeddaccd28c92259a4a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/productsearch/SearchEngine.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef78a5738a098467836d6d28acec682597b87b0917cd5e6850a1cd8d36457ff8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/internal/lint/src/main/java/com/mlkit/lint/InvalidImportDetector.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b665594a721d4295ec44c99dbc055a73334a18a94c135e56390a76202b2ee912"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/barcodedetection/BarcodeGraphicBase.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f5e1e393479c098a9bbbc20f65a77441e2e37b3b6a15e8fb5f764b2c9f9b27"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/translate-showcase/app/build.gradle"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"769ad7d30082d4234cb4ae3ac4a957b476135c837c382329d3ba3eef15e84f75"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/android-snippets/app/src/main/java/com/google/example/mlkit/kotlin/LanguageIdentificationActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"572e6b3dba3dd9d90c2f2e71587dfab2aef44ba4ab5f5892a2b36b258c5387ac"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/ios-snippets/swift-snippets/AppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67119ed46a44f223fae6e9466b0d86298d13b5c304096a60d346f61407cac6e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/languageid/LanguageIDExample/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"294ffae30de3babf713d864f7a7c516fe46f369f8e3758c2f8f86e8dc281eca0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/productsearch/ProductAdapter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6257b09cf5280734293e7d28f77be9107259017d0483b7c6f585a1a25d3d556c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/showcase/translate-showcase/TranslateDemo/CVPixelBuffer\u002BHelpers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6055056e97c0c949c79ca48d423e106365f6ab741bdcdf8ea84873fff9ef1b18"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/labeldetector/LabelDetectorProcessor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0130f1250b2150af75b2bf924c7898b24345c44928562de1a3ed885df0fb0c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/material-showcase/app/src/main/java/com/google/mlkit/md/barcodedetection/BarcodeReticleGraphic.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b113e82ea99cb820813578bad0808e32ccce7312bc40d16ff07a89fd3b5431b5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/internal/lint/src/main/java/com/mlkit/lint/HungarianNotationDetector.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e16bc6a99ce3ff24ef8c604a2fc2628d4c3931c592a9caca045276914cbc576"}},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 41 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88b11295dc6ac6146c259ace6043143959f96dc98628f8c8578b6c5f95b8149"}},{"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":"M4","level":"note","message":{"text":"README/code drift: tutorials/README.md links to \u0060CONTRIBUTING.md\u0060, but \u0060tutorials/CONTRIBUTING.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorials/README.md"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"926438e3fc49b160decf3db4fe6a3a6a4598b30d62b50a53f8aec5cb966fe914"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"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) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 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":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060searchedObject == null || java.lang.Float.isNaN(slideOffset)\u0060 appears character-identically in 2 files \u2014 android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f736503a6375f8de14f0311c7b60837750daccbeced32c669e47eed560f2849f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060shouldPlayPromptChipEnteringAnimation \u0026\u0026 !it.isRunning\u0060 appears character-identically in 3 files \u2014 android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveBarcodeScanningActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"81468e4d537794883823ca346f3501994165b94f588152322461ba5cafdeb7d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060shouldPlayPromptChipEnteringAnimation \u0026\u0026 promptChipAnimator?.isRunning == false\u0060 appears character-identically in 2 files \u2014 android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"60761b7c4b70fe9d13d4dc20f190b0eca12091ff9da745555fc3c20a27eff04b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060shouldPlaySearchButtonEnteringAnimation \u0026\u0026 !it.isRunning\u0060 appears character-identically in 2 files \u2014 android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"1836b9fa40dabf4ee806be857231b701b63a8f9e5d398fbabf0a2fa1a9900b01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060wasPromptChipGone \u0026\u0026 promptChip?.visibility == View.VISIBLE\u0060 appears character-identically in 3 files \u2014 android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveBarcodeScanningActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fcf8866fe553b8e5230b3f8d24db840c251db678e7be5be54348dc3d1f27aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060wasSearchButtonGone \u0026\u0026 searchButton?.visibility == View.VISIBLE\u0060 appears character-identically in 2 files \u2014 android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd84823ce484d700f850907ab3c70c463a39ab3b4240eda2996235687415f0bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060workflowState == null || Objects.equal(currentWorkflowState, workflowState)\u0060 appears character-identically in 3 files \u2014 android/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveBarcodeScanningActivity.kt, android/material-showcase/app/src/main/java/com/google/mlkit/md/LiveObjectDetectionActivity.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/material-showcase/app/src/main/java/com/google/mlkit/md/CustomModelObjectDetectionActivity.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a14c9298b9f4075ac11e8f8facd41a5249bcccc81e54a462170fb5f4de77f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060UIImagePickerController.isCameraDeviceAvailable(.front) || UIImagePickerController .isCameraDeviceAvailable(.rear)\u0060 appears character-identically in 2 files \u2014 ios/quickstarts/automl/AutoMLExample/ViewController.swift, ios/quickstarts/vision/VisionExample/ViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8062b13932e287f9a80bc100ef0773ef38211e8adb3319d39933b83095bf9f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060UIImagePickerController.isCameraDeviceAvailable(.front) || UIImagePickerController.isCameraDeviceAvailable(.rear)\u0060 appears character-identically in 2 files \u2014 ios/quickstarts/automl/AutoMLExample/ViewController.swift, ios/quickstarts/vision/VisionExample/ViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/ViewController.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3687106eab4e819a123d4fe0aca8b00ba8a19efc43fccd832414d7f10d75a8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060deviceOrientation == .faceDown || deviceOrientation == .faceUp || deviceOrientation == .unknown\u0060 appears character-identically in 3 files \u2014 ios/quickstarts/automl/AutoMLExample/UIUtilities.swift, ios/quickstarts/vision/VisionExample/UIUtilities.swift, ios/showcase/translate-showcase/TranslateDemo/UIUtilities.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/quickstarts/automl/AutoMLExample/UIUtilities.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4ee0bbe57d41823c24a1f4cb2d601e2682fd158e5a1f580038cd422a51e1d1"}},{"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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"74526bb2750a9deb59ab5d192382f1705f2848af4f987872c104e78b4604768e"}},{"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/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/preference/PreferenceUtils.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed45210226949eece2ac9dc4d2493fb68872c1aac3f40f9c0a6c6fe53c8f1171"}},{"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/material-showcase/app/src/main/java/com/google/mlkit/md/settings/PreferenceUtils.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e15c6238af047ed65be9ba2b0d1d4db070932fd271608c2388727955476e4e"}},{"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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/AgentScreen.kt"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa65f518041a7909c3130b43fe21577a8a7426e8aaf3e3c0812753cbe824754"}},{"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/genai/app/src/main/java/com/google/mlkit/genai/demo/kotlin/EmbeddingScreen.kt"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"933e98862d47e0ef203a2784ad6565672d4b732bb7e50c8bf5c3054d19fe48ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"514fcef65e1ff7e10ee1cfaaf7c892d61fc0c63886fef1348e278f996a0bbd29"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/automl/app/src/main/java/com/google/mlkit/vision/automl/demo/preference/PreferenceUtils.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"671390460928f5ebe6280e78fc907a2b591e7153c633028327950e344af49911"}},{"ruleId":"X5","level":"note","message":{"text":"Not-null assertions (\u0060!!\u0060) override null safety: ~7.4 \u0060!!\u0060 not-null assertions per 1k Kotlin product lines \u2014 186 across the 25033 line(s) of the 151 Kotlin file(s) read (generated, test and sample code not counted). Densest: android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXSourceDemoActivity.kt (24), android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/LivePreviewActivity.kt (19), android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/CameraXLivePreviewActivity.kt (15). Each one tells the compiler to trust the author about null and becomes a \u0060NullPointerException\u0060 the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3ce0e76a36774b1cbb2ede64da71daf948ff69b7883191b635533af629445543"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getRequiredPermissions\u0060 swallows every exception into \u0060arrayOf()\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/material-showcase/app/src/main/java/com/google/mlkit/md/Utils.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5f08c64a27570747b4b8c1f3e3f84b2690b7f6fb6ba8b264ecdb5a3f40f0ba"}}],"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-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-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":"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/"}]}],"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."]}]}