{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C1","name":"Data Protection","shortDescription":{"text":"Data Protection"},"helpUri":"https://codehealth.canine.dev/dimensions/C1"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"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":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"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":"StyleParser.parse (cyclomatic 42): StyleParser.parse has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/parse/StyleParser.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6e36d89ee9d466b3459050dffdbeb49f9f99b5df96943be2d437793752e0bc"}},{"ruleId":"D1","level":"warning","message":{"text":"WebhookDispatcher.dispatch (cyclomatic 40): WebhookDispatcher.dispatch has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/webhook/WebhookDispatcher.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7243cd0ff22ad1505502910167d2bff1506268f1521f551dc58181d28e1ab2"}},{"ruleId":"D1","level":"warning","message":{"text":"LayoutEngine.layout (cyclomatic 38): LayoutEngine.layout has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35235c8b821524b52eeaa578a362f6a777e382ded3d1d7d829f59aec05a5fd0"}},{"ruleId":"D1","level":"warning","message":{"text":"LayoutEngine.measure (cyclomatic 37): LayoutEngine.measure has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3603ed0be884be25edcad9c54a27f31a85c54e35cda3271a56a27aa5a191e631"}},{"ruleId":"D1","level":"warning","message":{"text":"MusicController.setRoute (cyclomatic 33): MusicController.setRoute has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/MusicController.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"86dd11fa12431d8d48d947756f2c8167e91f89c2977f7a988b70b00d6331f009"}},{"ruleId":"D1","level":"warning","message":{"text":"Div.draw (cyclomatic 30): Div.draw has cyclomatic complexity 30 (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":"shinobu/src/main/kotlin/xyz/xszq/shinobu/dom/Div.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed9309453a5181c9e35ab3238d14d01974d1a56175a749015f0848d80476459"}},{"ruleId":"D1","level":"warning","message":{"text":"MusicController.setRoute (cyclomatic 27): MusicController.setRoute has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a374f30a671cd0545566500c8002d75b93b1a101b787174e0c0fc2d1f14552e"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiController.listen (cyclomatic 24): ApiController.listen has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/ApiController.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"97149a0d096b3962a84c9d13b79753699f798948a71c42702c04200cddb08ca2"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsController.parsePreviewArgument (cyclomatic 24): SettingsController.parsePreviewArgument has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/SettingsController.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a63dd5ef1be5d57393f4cc24ed3aa6ad1f3a764a05c51612cd7fe993fa51ec0"}},{"ruleId":"D1","level":"warning","message":{"text":"Touhou.guess (cyclomatic 23): Touhou.guess has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"audio/src/main/kotlin/audio/touhou/Touhou.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b5f10e328f46eef70bc1d5392e65bc1d96d74ad018612853e59bf77cc0c8ba"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsController.maimaiPreviewSubmenu (cyclomatic 23): SettingsController.maimaiPreviewSubmenu has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/SettingsController.kt"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"456fb948f1a69b1b593bd6ddebfea7c3b1d4678325ffb4fe6fb182d080f3f3bd"}},{"ruleId":"D1","level":"warning","message":{"text":"Rating.calc (cyclomatic 20): Rating.calc has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: Rating.courseOld (cyclomatic 25) 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":"maimai/src/main/kotlin/maimai/music/Rating.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"845465d9c1547d3a3b8a5d437d28beeacd2eb7b7360f0296597cb948555e1f1b"}},{"ruleId":"D1","level":"warning","message":{"text":"TemplateParser.parse (cyclomatic 18): TemplateParser.parse has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/parse/TemplateParser.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2920916daaf171f18fe1f85557ee3e9a98fb716944fcbac227efd88bcd79d5ab"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageKt.reply (cyclomatic 17): MessageKt.reply 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":"src/main/kotlin/xyz/xszq/bot/Message.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66e3549ea4b56fe50102b107b1c76da8c85443785f5720124fb064363aad4f3"}},{"ruleId":"D1","level":"warning","message":{"text":"RatingTemplate.comboBests (cyclomatic 16): RatingTemplate.comboBests has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bb86661f4425edcd02fcce2b677036b7dcbf2aff6d55895d46a8c4b166daf9"}},{"ruleId":"D2","level":"warning","message":{"text":"LayoutEngine.measure (cognitive 89): LayoutEngine.measure has cognitive complexity 89 (threshold 15). Drivers by points: if/else 27 (63 pts), loops 3 (14 pts), boolean chains 8, match/switch 3 (4 pts) (nesting depth added 48). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass\u0027s cognitive complexity CONCENTRATES: shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt holds 2 of the 25 methods over the threshold \u2014 including the worst \u2014 and 120 of the 330 points over it (36%), 3.3\u00D7 the next-largest file (maimai/src/main/kotlin/maimai/controller/SettingsController.kt at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b57fbb1e0ddc00a1f5974a0000db1354409b75543d0c255e9e4d29c810bc410"}},{"ruleId":"D2","level":"warning","message":{"text":"LayoutEngine.layout (cognitive 61): LayoutEngine.layout has cognitive complexity 61 (threshold 15). Drivers by points: if/else 22 (42 pts), boolean chains 7, loops 4 (7 pts), match/switch 2 (5 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt holds 2 of the 25 methods over the threshold \u2014 including the worst \u2014 and 120 of the 330 points over it (36%), 3.3\u00D7 the next-largest file (maimai/src/main/kotlin/maimai/controller/SettingsController.kt at 36). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f5f0e759cb4dc86311fcfd4f82c8a3b11fb7556b6a6daab0f567df13561ef2"}},{"ruleId":"D2","level":"warning","message":{"text":"WebhookDispatcher.dispatch (cognitive 50): WebhookDispatcher.dispatch has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (36 pts), match/switch 5 (10 pts), boolean chains 4 (nesting depth added 20). 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":"src/main/kotlin/xyz/xszq/bot/webhook/WebhookDispatcher.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"40022039c80ad7ded2cd61b37b086f7f7892b3bbc320fcf2ff27e8fccef48cde"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsController.maimaiPreviewSubmenu (cognitive 48): SettingsController.maimaiPreviewSubmenu has cognitive complexity 48 (threshold 15). Drivers by points: if/else 27 (42 pts), loops 2 (5 pts), match/switch 1 (nesting depth added 18). 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":"maimai/src/main/kotlin/maimai/controller/SettingsController.kt"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"64045bfd6e206e5e5a7940af599511fa3d241a181b7f2001861a3b7e7210bbcc"}},{"ruleId":"D2","level":"warning","message":{"text":"TemplateParser.parse (cognitive 38): TemplateParser.parse has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (30 pts), match/switch 2 (5 pts), loops 2, boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/parse/TemplateParser.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4d419f176b5000097b01e8721cc88ac58fb0cc4bce80ee06f67693b4f1082c"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicController.setRoute (cognitive 34): MusicController.setRoute has cognitive complexity 34 (threshold 15). Drivers by points: if/else 25, match/switch 6, error handling 2, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/MusicController.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c22ecb41b44e725892778765c6ee3b76ed10256d4e96b9e0085e233da8bf81"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageKt.reply (cognitive 31): MessageKt.reply has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (27 pts), match/switch 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/Message.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e755f6e934d1a854885fefc5c969a2aaa48fb686f78614e917a556dde0b90d0"}},{"ruleId":"D2","level":"warning","message":{"text":"StyleParser.parse (cognitive 31): StyleParser.parse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (22 pts), match/switch 3 (8 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/parse/StyleParser.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cc3dd6b0ad1bc7f7329e3981508fa8f156711b95543534f0d5d0bcafc5eeb7"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicController.setRoute (cognitive 27): MusicController.setRoute has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, match/switch 5, error handling 2, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f097ea8b1b71764ceac7018d9c4b6c4f8d598d2a7c330e649b59935655105755"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiController.listen (cognitive 25): ApiController.listen has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 3, match/switch 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/ApiController.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e00d39c45898964644a8e74f5af4471d4016b70ee78a39fc7b5fcc3402cfa8"}},{"ruleId":"D2","level":"warning","message":{"text":"LevelTemplate.template (cognitive 24): LevelTemplate.template has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 4 (7 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/component/image/templates/LevelTemplate.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"524c461c3a3e2434f28ed0b71e60a19ccb990d6d369905bc728b6213cef9fa84"}},{"ruleId":"D2","level":"warning","message":{"text":"Admin.setRoute (cognitive 22): Admin.setRoute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"admin/src/main/kotlin/admin/Admin.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"be03d9b9a38970a6ad977d4a0ada313866c61d4194ff3c6ec42a0052f975a572"}},{"ruleId":"D2","level":"warning","message":{"text":"Ed25519.precompute (cognitive 19): Ed25519.precompute has cognitive complexity 19 (threshold 15). Drivers by points: loops 7 (11 pts), if/else 4 (8 pts) (nesting depth added 8). 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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64a12cef0ec8c8f4ee04228a55755856b5858c69cdd68b5c0b4192c035f99a1"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageChain.parseMessageElements (cognitive 19): MessageChain.parseMessageElements has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/message/MessageChain.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0202d95e90f9dc5bed36294ef553b4e7bd233bde5fb8e6b60fb29c8299b23d1b"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicController.searchByCover (cognitive 19): MusicController.searchByCover has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), error handling 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99ac52d3e2dc9edf1c5fe717d460d717d1fc5d53c2ba12219cfcc879d3bb284"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicController.searchByCover (cognitive 19): MusicController.searchByCover has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), error handling 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/MusicController.kt"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6af68b7dc8313cff734c0f37613121512bddfd29cd7c9216f3e4c375ed384d"}},{"ruleId":"D2","level":"warning","message":{"text":"Touhou.guess (cognitive 18): Touhou.guess has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, match/switch 3, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"audio/src/main/kotlin/audio/touhou/Touhou.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3128c2701807c5f539a049224e3837d5cfb2c80e336c1848472930dd3dc642"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsController.parsePreviewArgument (cognitive 18): SettingsController.parsePreviewArgument has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 3 (5 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/SettingsController.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"be505c3c103580d5070007e9cb6e3e8b6b94f01250a9d339579a6362a35f17a5"}},{"ruleId":"D2","level":"warning","message":{"text":"Rating.calc (cognitive 17): Rating.calc has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/music/Rating.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"427b83bc23a8d63797771639145664aa05a5de972a8868bc26c67fa49a677fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"ScalarUtil.addShiftedNP (cognitive 16): ScalarUtil.addShiftedNP has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 5 (6 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (ScalarUtil.subShiftedNP) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3365}}}],"partialFingerprints":{"codehealthFindingId/v1":"8265394870635f1746ee0760fb61c4f6c9f58e5e268cadfc635d2ec1631fc0b8"}},{"ruleId":"D2","level":"warning","message":{"text":"ScalarUtil.subShiftedNP (cognitive 16): ScalarUtil.subShiftedNP has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 5 (6 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (ScalarUtil.addShiftedNP) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3567}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f52cb813e03437201d55cd0cb4138102551d732c76cbbf5b2fe4ff8ac80652"}},{"ruleId":"D2","level":"warning","message":{"text":"LXNS.getPlayerRecord (cognitive 16): LXNS.getPlayerRecord has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68d09602fa49939f1322febfaa4fdb4fab891d4a56307c95b8ac144e357a768"}},{"ruleId":"D2","level":"warning","message":{"text":"AliasesSearch.similarity (cognitive 16): AliasesSearch.similarity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (5 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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1eee9091c5d9f637a4f3368408631ae81b24cebeea3f765336638f2b93c237c"}},{"ruleId":"D2","level":"warning","message":{"text":"LXNS.getPlayerRecord (cognitive 16): LXNS.getPlayerRecord has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/api/LXNS.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc3f9bd77b90b51c22891b0a731df4d75a2c0a04ed0275e0802c6ae643c16ec"}},{"ruleId":"D2","level":"warning","message":{"text":"AliasesSearch.similarity (cognitive 16): AliasesSearch.similarity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (5 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":"maimai/src/main/kotlin/maimai/component/AliasesSearch.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d27282a2e1da4bba8c0c2dfc92e1d2ffbab10a25178fdac579fb048acba66a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: crypto/Ed25519.kt: FileTooLong \u2014 2991 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2491 over it, 5.98\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bf83564fcbb36dc585f9dc09cb4b80b953b3c1500cc96abe864c057332a7e7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MusicController: ClassTooLong \u2014 779 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 379 over it, 1.95\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":"maimai/src/main/kotlin/maimai/controller/MusicController.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b1eca4a5c9f47979811e54b0d5b1be3234ac379aaa084c5b2b2793f7ec430a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Feedback: ClassTooLong \u2014 684 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 284 over it, 1.71\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":"feedback/src/main/kotlin/xyz/xszq/bot/feedback/Feedback.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"670c8dec9107aa0a06318e6c45bbad94a1f56b7bad024ab4b050c68aeadda5d2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Field.mul: MethodTooLong \u2014 mul runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"03781917e75bedba3bf6f9aee606bf3cf55be1f3da18e75b6d3fd930aca3abea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controller/MusicController.kt: FileTooLong \u2014 827 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: MusicController (54-1102). The bar is 500 significant lines; this is 327 over it, 1.65\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":"maimai/src/main/kotlin/maimai/controller/MusicController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b714fe813955e0e91369cb2337c306f0a5df5a6ac681276902fed4f8d32f66e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Nat256.square: MethodTooLong \u2014 square runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2261}}}],"partialFingerprints":{"codehealthFindingId/v1":"096b748a5ed8381dc800326efb8855644124acab33983862114075f706551eab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Feedback: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"feedback/src/main/kotlin/xyz/xszq/bot/feedback/Feedback.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"400b81c926394677e3971156529e24662586a96d12ad6390f88e05689a4da121"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LayoutEngine.measure: MethodTooLong \u2014 measure runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e48045934146b7edb9ee15c9c6d3c2c40c20040228d8765295805383c465f33"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MusicController: ClassTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 188 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"587d56055ab9b1f78cceb72ce926cf3dadd3b6bdca82b5a09d28233b20ae8875"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: feedback/Feedback.kt: FileTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: Feedback (40-963). The bar is 500 significant lines; this is 218 over it, 1.44\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"feedback/src/main/kotlin/xyz/xszq/bot/feedback/Feedback.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f4ea2f1543e10f9b6b5356701157e2048cd52ab9cb8f53d598524419cef127"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scalar25519.reduce512: MethodTooLong \u2014 reduce512 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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3134}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f44014e53f80f0a6878075736932aff10557a817325529f122b7530fe404fa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Field: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5e3daefda83a76d793b8aa4c4f7eae1b1d91747d5f891727a8d78de4edda55"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Ed25519: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e251ca3caa0063e2f9f9383496281089888707757ccc9614277f51d7872eabb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controller/MusicController.kt: FileTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: MusicController (45-852). The bar is 500 significant lines; this is 127 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ef1ad76322e910b3889440692e39e72de9a3d17ff96010b8b2743fedf0b993"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ImageController: ClassTooLong \u2014 494 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 94 over it, 1.24\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":"maimai/src/main/kotlin/maimai/controller/ImageController.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3c614da8fb456eb20d14e76183aa037d4ac2a09fff48a47751da3a5e29282d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DivingFish: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 86 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/api/DivingFish.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f2a8a1145149bab80501883608f016958ca12a93d558a353934595714119ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Touhou.guess: MethodTooLong \u2014 guess runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"audio/src/main/kotlin/audio/touhou/Touhou.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b23812257356cd5e544d29f4c5173c66b8f1755e670703642d76d0d2278905a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Field.sqr: MethodTooLong \u2014 sqr runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6712740d3ce8dbf188e7c605480591485389ad9efaf4012a1b8d55fc76ad92"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GuessController: ClassTooLong \u2014 456 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 56 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/GuessController.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa5b2addc7e82d68ea51a416837f9902dd3a3e54e18c5f5b551cf2f8167f370"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LXNS: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f2a3c74279749f4ef1534340b92453be4dffbf5b31cf79802b27cc5f90870b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controller/ImageController.kt: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ImageController (40-818). The bar is 500 significant lines; this is 28 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/ImageController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5c1e85a7a11f14be192aaf3aae55f8be19d0b9523c13c9e704b414e6d1a6d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/DivingFish.kt: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: DivingFish (39-788). The bar is 500 significant lines; this is 17 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/api/DivingFish.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7586a19ff512ad04fe58c45fc778de3148342952fd33e2f43f90e4ee5e76423"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DivingFish: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/api/DivingFish.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1d58dc6535830076e2cfaf4ccf9f0ba1cde12940a5f88d11b85c7e81bc2316"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Meme: ClassTooLong \u2014 405 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 5 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"meme/src/main/kotlin/meme/Meme.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59e76603c20bfa66fe8d9925e7192ce9452e48a971cc9a265d85e6cd86ed61c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LXNS: ClassTooLong \u2014 404 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2715c765e9fb97612072bcf0490ed94446b9f708f68e54547667cb18dfe9d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scalar25519.reduce384: MethodTooLong \u2014 reduce384 runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3019}}}],"partialFingerprints":{"codehealthFindingId/v1":"195c29973a66f0bd5dbe952a3c5f087adeafa971484467be26934b94716cc22d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (100 shared lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:60-359 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:77-510 \u2014 These two members are variants of one another: 100 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e23748c7ce20859cb240859feebe19eba9e972314f5a1a1fbf4e49674d1862f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (95 shared lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3019-3132 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3134-3286 \u2014 These two members are variants of one another: 95 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3019}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2c805703ff8c2b44786596dfd71d2b113148b97f01455cb21820555723ae15"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (72 shared lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1446-1618 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1716-1845 \u2014 These two members are variants of one another: 72 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"45432c68606891f8226cdcbac9f452a825077986cc98816fe3d7a6c9b336858b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (67 shared lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:381-473 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:705-799 \u2014 These two members are variants of one another: 67 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a080bc98c66e96885e15a581e15485be7ee13b72fbf4916bb5c374b93ba657f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (49 shared lines): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:149-231 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:145-226 \u2014 These two members are variants of one another: 49 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"47053d1f402d4632f8b97700fc210c036a9b8eca2db067f0d172a76ffcb2e6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2065-2134 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2140-2209 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"71322e3a86ae77e4280cd4a72b3d745b7b9da5aad108d3ad381a5ae0b8b87064"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (44 shared lines): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:217-270 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:300-353 \u2014 These two members are variants of one another: 44 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd914fc7b0e61e698fb60c405e330e6f6b508bae3558db2470aff4950c965844"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:72-136 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:68-132 \u2014 These two members are variants of one another: 35 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43cbf5194d2f2f4ceca2ce1a791eaa6bb1a410e40ca080f684ad2a64972a559"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3372-3474 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3574-3676 \u2014 These two members are variants of one another: 30 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d200c830d09532a18d15472fa0af7d361b427bf1b40ab764090951fdeb2373"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:233-263 | chunithm/src/main/kotlin/chunithm/api/LXNS.kt:431-481 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:202-232 | maimai/src/main/kotlin/maimai/api/LXNS.kt:136-190 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5541647837ac414b2f63d9ba5d787bd9a55e4d0cdc03e407446bb5797d004b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:322-350 | chunithm/src/main/kotlin/chunithm/api/LXNS.kt:638-663 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:758-786 | maimai/src/main/kotlin/maimai/api/LXNS.kt:565-590 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f257521d60bdb110e51c035f246ee46bee928ae3a6d65a36787529af790b1e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:491-521 | chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:530-559 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:611-641 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:649-678 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4fb0f98fbf8006be3e19be532ccb3a0502c649851963b414fc1bde327c8af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): meme/src/main/kotlin/meme/FiveThousandChoyen.kt:90-128 | meme/src/main/kotlin/meme/FiveThousandChoyen.kt:136-171 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"meme/src/main/kotlin/meme/FiveThousandChoyen.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"56171bc56ed02722a62ba44df439817b4d138269c724fe82f99e381bc4e5314f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1980-2007 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2015-2042 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0b31b999778474add4402b4fd4def1c31807f0a31c66cc65b4b4cc98dd018c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:198-237 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:267-306 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03be7c0458bd68020c0cf9fe131360ef4a44a260be15710ba5725da79558bd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:205-247 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:189-229 \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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e7ee89ccbbd91016fcd457e100e50092a5275a27364ef4a70fab1704fc1a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3483-3523 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3685-3725 \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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3483}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20b6d8903bffeff561bc98640ad9060eebb96e37caf3c6bc4e4a90712174e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:202-249 | maimai/src/main/kotlin/maimai/api/LXNS.kt:343-389 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"77feb8ea248402c277d709c95af5c125e2a748c49ff10eaf090d94447fd0d100"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:232-283 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:368-421 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b2e979754637df2a01af4fe88e422c36bea55382215235e61f1fa88f277776"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:366-397 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:692-723 \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":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"007ebd9cabbaa10a9f972ba41d37dbbf72996436fe415502fd58563135a81ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:202-271 | maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt:247-296 \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":"chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"947d8e363e8c3df303655c54f14992e268e1f2ccea5327cd85343479a86d23ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:295-327 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:274-306 \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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ceb886a1b2688c960f8812781d2688afbf55e082f82c5a4cd8926faa5f13ea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:247-281 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:316-350 \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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"905f61b957be5aac4f950023646c413b686c09eaf6f592eee562534894103fee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:343-383 | maimai/src/main/kotlin/maimai/api/LXNS.kt:486-525 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea5d4c58ddbf47fd9383072843eabe9f59e218343d6d701485859a77fd3c177"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:295-331 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:436-476 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b8bb7f4d4906dbf4c36ff70a4920de183c7f163d01eb08387534cfe89189cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:126-156 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:113-146 \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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcb9ef5ab5c333b54ad3a9403d9d1d600d1a83fcf8b1a24d059dfbbdcc5ce89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:423-452 | maimai/src/main/kotlin/maimai/controller/Controller.kt:464-497 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2517b0ed883a0f6312a237f5d7532167efb901b42b3f5b545352a6e8b819d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:196-223 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:397-424 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79744766fb120254a43b1ebaae0f7ecd3f46995b9cc067e0dc146d5cf4b808c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:303-333 | maimai/src/main/kotlin/maimai/api/LXNS.kt:447-476 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"47200ce0020e1dbc5cca10aff0cae5fd89a551d7a7cbcdce71d1db266db2e064"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:564-585 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:615-641 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:648-676 \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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b6a562b31e62d2648178f1eedf5428e79177e80247c9097f1bfbb6a5dc3708"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:164-198 | maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt:204-243 \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":"chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f089c9f0143e08bfc902c05f5639974bf3192af078b863c306f1f266b5f055f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:222-249 | maimai/src/main/kotlin/maimai/controller/Controller.kt:230-257 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbff040983601141b03a8d68605018a3ccabb3fce92a9c7e6f710acd3e85665"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:742-773 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:960-991 \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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb12d893f4fc850b34b201188cf1d0abb02d7d5c8e95f4a69b4c1b93708240b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:111-143 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:236-272 \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":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd480ddc3ae9b804ee157caea9d60a3bd70c7b29737bb5e189841623f0698a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:130-153 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:122-145 \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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a05efdfa699a3191e66cdbbba7376bb28e26f0d4f4f8fc2713e3828c8cde838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:298-329 | maimai/src/main/kotlin/maimai/controller/Controller.kt:372-407 \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":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"502dfcc721f42ec1ac0dfb6738f9029614a959e0c59b6824322db81859c09de1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:591-608 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:707-727 \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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f6f35e4dc7d6dad6a6c6cb56f64fca61af17dc91295cbad568f8cb78876fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:199-219 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:334-355 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"451a2e496f5215318a9d14d14e066c7f8f7e1aeedd8d44bae09a2c3c6c23c282"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:265-287 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:234-257 \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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"9017eebe38a0ff698cdd11cac32e7d650a9ed61b41dbd49fd30d090e7071dbcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): chunithm/src/main/kotlin/chunithm/music/MusicInfo.kt:102-138 | maimai/src/main/kotlin/maimai/music/MusicInfo.kt:98-147 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/music/MusicInfo.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"71eec4d2c2ceda133fb8dc302cd6e0fe35592fd855f1fa30bf8fc5a8f03e3794"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:690-706 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:918-934 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d05ff59c88c70b5a3b307beaca6e298cbe0da80c343b8b974f76c55eaa46844"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1250-1261 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1286-1297 \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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca275ac44427528799849fba5049725c940fa860d22595ee9f1225bb6025ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1351-1362 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1369-1384 \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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"465f82eb12f5f738f152454f29dab9ebe0bcda19235144011a72239d22eb3215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): maimai/src/main/kotlin/maimai/controller/GuessController.kt:575-597 | random/src/main/kotlin/random/RandomPlugin.kt:219-241 \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":"maimai/src/main/kotlin/maimai/controller/GuessController.kt"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d015b4b83343d56f9cc0b01564fc93a200ac566a0a0966a05c6ad72d288f146"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): maimai/src/main/kotlin/maimai/database/ArcadeGroupBind.kt:150-160 | maimai/src/main/kotlin/maimai/database/ArcadeGroupBind.kt:169-177 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/database/ArcadeGroupBind.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e838f84c4119d97c761925d15a17ea119fc01ced58d6a44b4dfc0f043630d249"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:429-442 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:754-767 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6d3e158f21f837c87b3676089d7fa27d6074f3ec6d06f6b6914265f2585427"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:88-95 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:81-89 \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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f11c5d7a7bdd8f662c441d7cc8b76fd135043347bc3d9b56d9eca2358f1f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:86-102 | chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:113-127 | maimai/src/main/kotlin/maimai/database/MaimaiMusicAliasTable.kt:75-91 | maimai/src/main/kotlin/maimai/database/MaimaiMusicAliasTable.kt:111-125 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69510543aabc4fa7cf441634e39fc79a9c38c93ab2b9d71709479fa248616b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2643-2661 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2667-2685 \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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2643}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21e1b292cf04b544d8620296459e23792339492a4336e8142566612d0397f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:62-77 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:439-457 \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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7642a257c262b4f72bd040497c3cc30b665007fe6d82fdb4de220624b1c58431"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:171-187 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:303-321 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d0eb82a23f4eeb14aeb37298476dc4e446e5d5ecb220480ab6fe0c47d91deb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:85-97 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:86-98 \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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d198fb76d9ef42cdf36375fa3f66f5a9ee2b295b96ccf2f62bbc1baa2b20a64f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:239-246 | chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:254-261 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:234-241 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:249-256 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f931e791199c1e5861c728312cfcbf7e34377798dbf90018ec757b191fc4ae06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:152-161 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:283-292 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fe123a22b69fdb49f32f58682774436d990e762fe4b4d29d23be7754e88545"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:294-309 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:379-394 \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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2a5816a05eac673ec61c8412314d53be6c8b693d8e7f3d043e154ee7985312"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt:79-94 | chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt:115-128 | maimai/src/main/kotlin/maimai/component/MarkdownTemplates.kt:83-98 | maimai/src/main/kotlin/maimai/component/MarkdownTemplates.kt:119-132 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6014fd4ee550a199087652c4d72bbaeb6c9f2ef6f7e9189050a6bfdc21afb520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:417-423 | maimai/src/main/kotlin/maimai/api/LXNS.kt:236-242 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef8ddcf2bee6c20d41bac7fdc222b509fe27f28b24e5b1afc59a4ab78dd2f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:340-353 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:485-498 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ec175227de6aa72119369250afa99bb05637c5261d0156f95b7a3f012b259a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasVoteTable.kt:32-43 | maimai/src/main/kotlin/maimai/database/MaimaiMusicAliasVoteTable.kt:32-43 \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":"chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasVoteTable.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b827345ec20191f912a58cbcc101e73c2830d946e5b9dd7bd487fc40523d267d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:564-584 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:682-703 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff396f7e09df40634996331733a356bd04f818e92d2a2fc41d55b86a4348b363"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:708-716 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:1068-1076 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a4d0b4153296449e8f4020adcaf80810c0f9f38c5606a072e728e908a6acc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:501-511 | maimai/src/main/kotlin/maimai/api/LXNS.kt:244-254 \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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55d3be3e00745a10ced4666fd5233695d0323698552267d4e3114e1c63614f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:170-177 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:160-167 \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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"899f8b754dd2c369cdd7e40b6eb7eae4a005723ba2e40deb958cb0889e0757ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:333-350 | maimai/src/main/kotlin/maimai/controller/Controller.kt:411-428 \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":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"da986af48a35c850ebf772f9f3407f9b85d61350b367444d7623b8300e0de39b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:309-319 | chunithm/src/main/kotlin/chunithm/api/LXNS.kt:623-635 \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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d24ba6ebbdf9450b0982ee8f3fcb5572e3b408730dde1915f66bd3f466f99f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1320-1326 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3741-3746 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3751-3757 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"732a62a0f9ca1f374d08d409fa8060f86c9fd930921725cba7a5a311cedf3c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): maimai/src/main/kotlin/maimai/database/MaimaiPreviewSettingsTable.kt:101-113 | src/main/kotlin/xyz/xszq/bot/database/GroupInfoTable.kt:106-115 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/database/MaimaiPreviewSettingsTable.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efc1ebcbb477f57be07e2902cbc889a507287764e256e36126a47a7056a8253"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1390-1395 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3785-3790 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"683411d6eb86977aa37184252f5c1a65c0632a9c1cf6c9a0d843cfbf87f78cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): maimai/src/main/kotlin/maimai/controller/MusicController.kt:805-818 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:823-836 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/MusicController.kt"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d9601cfde1d84583bd649304a78c18c84f1a50bc0f3481f1a63de72ccaae36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:95-105 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:476-486 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"541901da4b89caa820ac75741c1810ac217bed1c0e9ec0917fc990a6ead91307"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:50-58 | feedback/src/main/kotlin/xyz/xszq/bot/feedback/Feedback.kt:670-679 | maimai/src/main/kotlin/maimai/controller/Controller.kt:60-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50d267ae6f7062f7586822550ddfdfb18516e0eae5443687286bb9f253ec842"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:720-737 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:939-956 \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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e70bb0d5d374e1a38159feeaa0f262af463d259ab857a28d4953db6ea425975"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): maimai/src/main/kotlin/maimai/query/ComboQuery.kt:493-501 | chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:417-424 \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":"maimai/src/main/kotlin/maimai/query/ComboQuery.kt"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70e2b703b8f67584c46d6433ff14bfc59b58e3cf4c1b9eff0ede5cf0aacc23d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:608-620 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:840-852 \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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c49469c05deadfd51b3cadc6c99bb1d35339763b1b47968f69409ff6d0ebe62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:170-184 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:207-221 \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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d386b8f2fd9ce3628c4dfb31f255dca9f8f2519aeee4f06c71b4b5b8a9604fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2568-2582 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2588-2600 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2832-2846 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2568}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3345bf5a5660e20960d1ca22448e1a7667faf905dbc700038a33a3a533f163e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:625-637 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:856-868 \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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13cb87d18b5d6980cfe54eaece56b432c7328eb0e9dcce75eadb46419b74fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:674-686 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:902-914 \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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"805c3c030b8fa9a136d144d678d906a13c083984412e05d50d2c6170aa04fdef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:642-654 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:872-884 \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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7dd4a3aa570bbf1fc406a811a9bda7053401f585ec0bbc58ca6c4480a1e44ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:385-390 | maimai/src/main/kotlin/maimai/api/LXNS.kt:204-209 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a150ca1adcd106dfac251334686658267220286fd2283b7baa5e3949932e4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:158-166 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:148-158 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92397309725c380d5a017e0965060a45884d706490a7a399ff576cbce5f7cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:267-280 | maimai/src/main/kotlin/maimai/controller/Controller.kt:341-354 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a0b560cddf0f74f5f0906d323c08d4c156b96144226c4eb2e23a7034964e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:659-669 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:888-898 \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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed55f220dadd927f7389e6a61b0e3d134b150bc0ac7a6bcd207c8861f0ff3a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): chunithm/src/main/kotlin/chunithm/Chunithm.kt:176-187 | chunithm/src/main/kotlin/chunithm/controller/Controller.kt:69-80 | maimai/src/main/kotlin/maimai/controller/Controller.kt:77-88 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/Chunithm.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8574ae2911029de55852ba61a6a0b3a933770d0184f074a9e6173284fc998ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:201-210 | maimai/src/main/kotlin/maimai/controller/Controller.kt:209-218 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fe38a374503552ac9fa3ea70e67f42029199e9e82fd34bd05234fca6fdb95d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:184-189 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:177-184 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ed6c036925829c0963fd047634ad527d6c9bfc3fc41f9203a26ed06ccf1bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3073-3123 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3227-3277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3073}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62e7dd1a8718913e1ef3e7acf9396f5d595f8aec4b94b622eba765769e67f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1581-1618 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1808-1845 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1581\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f5603ab4c41ed974248f0eeda27f698d65656fde2b2b23fa6b227ff787d9a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:396-430 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:720-756 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:396\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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35aed082d76af4c3001925209c080584a7b9c2c5153656205627aaec099a98e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:156-189 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:245-277 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"effc3e58607333437af7cfdda94c7ee6c086d3cab8ed86c68d1138b9b684136d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201333 lines \u00D7 4): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2309-2341 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2343-2360 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2364-2381 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2387-2404 \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 \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2309\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2309}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f99b7e7bff7ec75a208e92653f6807871b35918e5cb4d0914ad0eebb235e561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:234-263 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:203-232 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/DivingFish.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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: \u0060ProberBindTable\u0060 names \u0060xyz.xszq.bot.chunithm.database.ProberBindTable\u0060 in one and \u0060xyz.xszq.bot.maimai.database.ProberBindTable\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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a5be2941a38b6f14a2a2820a5cba3f0e3b46fd8570ac5248706ac8a2240c38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/ChunithmImage.kt:51-79 | maimai/src/main/kotlin/maimai/component/image/MaimaiImage.kt:58-86 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/ChunithmImage.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0d7525d9983a200e79118c616db639036848f2cad85f6d0b42d14b78b1aef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:248-276 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:317-345 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/query/ComboQuery.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e0108683e95cd3ca091c01e6a0928b684f95e60afc0e163bebc3fd2b845595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:343-368 | maimai/src/main/kotlin/maimai/api/LXNS.kt:486-511 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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 \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt:343\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d6495545db21a13e0acdfc0671f45a81412e364a3fb156343f45f051542ffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:322-347 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:391-416 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/query/ComboQuery.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac996dc305a951301ff0d6de5d142f6985b58b94b449ed4487bb802682626d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:254-278 | maimai/src/main/kotlin/maimai/api/LXNS.kt:394-418 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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 \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt:254\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f8829130466334e5988ae525c0b38f8f1a8a1423e5abea62c20d58236cb513"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:35-59 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:31-55 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f427b20b84c40a16b9ee5dd3e135c4990b59d0acf3e989b0c8a18c1659e9bae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:202-225 | maimai/src/main/kotlin/maimai/api/LXNS.kt:343-366 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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 \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3557625634d33b187cb5950fc6ebea97ae73db66fb6fe6ae96e431a348fbda1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:536-559 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:655-678 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:536\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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06279214690cee0180683cb726975bb4f403aa07073a208a7e2dae993cfbae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:215-237 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:284-306 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/query/ComboQuery.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:215\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd57b9945a6cb91957243e437b9c6b58319c4ab78b2b6f311477ffe928ce551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:226-247 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:210-229 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/AliasesSearch.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:226\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: \u0060MusicNameAlias\u0060 names \u0060xyz.xszq.bot.chunithm.music.MusicNameAlias\u0060 in one and \u0060xyz.xszq.bot.maimai.music.MusicNameAlias\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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6b6666b0cf17dcbee8981b7f190beeacb2627474ba95903d1b2b6d38041892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:338-359 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:489-510 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:338\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: \u0060MusicInfo\u0060 names \u0060xyz.xszq.bot.chunithm.music.MusicInfo\u0060 in one and \u0060xyz.xszq.bot.maimai.music.MusicInfo\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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8427966398a241fa9557f75ac279d466cd59c3fb2fe74286de668a9dea3e676c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:229-249 | maimai/src/main/kotlin/maimai/controller/Controller.kt:237-257 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/Controller.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/Controller.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/Controller.kt:229\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e632d0f4df04c48ddb1e12759ac59bd943490ad4843f0d09379029388d4316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:165-184 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:522-541 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/DivingFish.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7796b5cf10a4179f75e1948b5bae39153fbb5d4816f6364c41c361ab933b21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:331-350 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:767-786 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/DivingFish.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:331\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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc47723a7e05378ec07b048fe415ebf234590bb21309bab8ae15f3cd61acc3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:588-607 | maimai/src/main/kotlin/maimai/api/LXNS.kt:320-339 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b50dd2d66e579628c954758da60b660c2e0ce0bc5fa9c9146ac4da15ab9b862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:433-452 | maimai/src/main/kotlin/maimai/controller/Controller.kt:479-497 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/Controller.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/Controller.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/Controller.kt:433\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060MarkdownTemplates\u0060 names \u0060xyz.xszq.bot.chunithm.component.MarkdownTemplates\u0060 in one and \u0060xyz.xszq.bot.maimai.component.MarkdownTemplates\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":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc788362eb57177cbe2e7de1c01de7b410a8c9ff9c3e1b3103036a168e48258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:266-284 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:235-253 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/DivingFish.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:266\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1728174f5ce0662a75812b82ee3feba7fa37ea80245fe2cba3bfeb50a3d8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2070-2088 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2145-2163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2070\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2070}}}],"partialFingerprints":{"codehealthFindingId/v1":"009de419845ceca6c633d7041a8951e5fe61bd0e378909d6bc904f3d64815d6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3035-3053 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3186-3201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3035}}}],"partialFingerprints":{"codehealthFindingId/v1":"f558477c060323fdf9a571724135976ce8191340d1b50a347a708f2c37dc920c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:322-339 | chunithm/src/main/kotlin/chunithm/api/LXNS.kt:638-655 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:758-775 | maimai/src/main/kotlin/maimai/api/LXNS.kt:565-582 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/DivingFish.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:322\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"9203197cacb7f26ad413f04be76a691eed69c864bb8b615ffaef66e61c0e13d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:167-184 | maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt:212-229 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt: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. Note first that the copies are not typed on the same thing: \u0060RatingRenderParams\u0060 names \u0060xyz.xszq.bot.chunithm.component.image.RatingRenderParams\u0060 in one and \u0060xyz.xszq.bot.maimai.component.image.RatingRenderParams\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":"chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef5353242546d8e975216fc2f285b24b1ab6792e986a2a642683c2ec4e99eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1526-1543 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1769-1785 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1768\u0060 calls \u0060toLong\u0060 and \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1526\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd43ad1802716df10dff11d61070a8db852c2270b4365288e3882401140e0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:260-283 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:242-265 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/AliasesSearch.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c40bf30fc2ea79e87f0713e97a85883e36844a5ccc27385f9872d4d8d64b815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:381-397 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:707-723 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/ImageController.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:381\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":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b45041b18a809a2c69e17f2486b1e128e314bebd5ddc149f0e657755c2f1d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:269-285 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:357-373 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:269\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacce86eaf2c691451042c9b778bfd766214c4a1a9976ed324de88bbf7459468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:319-335 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:470-486 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:319\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: \u0060MusicInfo\u0060 names \u0060xyz.xszq.bot.chunithm.music.MusicInfo\u0060 in one and \u0060xyz.xszq.bot.maimai.music.MusicInfo\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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb5e8621c65e306a42be4c4dd3ff7e78ab5afd53988a00992f634867a9c579c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt:31-47 | maimai/src/main/kotlin/maimai/database/ProberBindTable.kt:31-47 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/database/ProberBindTable.kt\u0060 as WHOLE FILES: 95% 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 3 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 \u0060chunithm/src/main/kotlin/chunithm/database/ProberBindTable.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":"chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e24ce7d6fe7a6fbb5db88721aed8ad821190b87ad5cd40911bd47bc5876aa5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt:60-76 | maimai/src/main/kotlin/maimai/database/RhythmGameSettingsTable.kt:61-77 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/database/RhythmGameSettingsTable.kt\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 \u0060chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"db22aaffd2d102dcbbbeba54ee3df24c10249b9d8431aed4c7d900c2132781dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1755-1769 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1790-1806 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1755}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea641613ff05eb08363c4918317f20d2d943b35eb8e822eb7b4a05a7c8057a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:570-585 | maimai/src/main/kotlin/maimai/api/LXNS.kt:302-317 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7b6e5034038b3ed58007fe35fcec9c2690927e9c874b952e3a3d635047b032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/music/Rate.kt:25-40 | maimai/src/main/kotlin/maimai/music/Rate.kt:23-38 \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":"chunithm/src/main/kotlin/chunithm/music/Rate.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"497572ed1a560d3092d8599ada3f45fec3470bd3ea13c480ac55dedfa76c5dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/music/Rate.kt:47-62 | maimai/src/main/kotlin/maimai/music/Rate.kt:46-61 \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":"chunithm/src/main/kotlin/chunithm/music/Rate.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f86dd816cfb55c0c469d4617c81993195cf374360cf788a7a10e36dcd58fc0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1479-1494 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1560-1575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bd00342dd375faf4c6acd76bb5401df607e116cbd36dcb24f316afe750ae24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2094-2109 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2169-2184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2094\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2094}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1f7f2ce9762d3aa77e796fdd9f79995ffb0edf956116de8d913a78dfb59ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:492-506 | chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:531-545 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:612-626 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:650-664 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:492\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee94e3d82d0f1b0a9f4a190ec9058e8a9279c868871398cbd8d567e6fe4e278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:197-211 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:398-412 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/DivingFish.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb4b645fa5a60e8bab6cdd1110fc668e68a2a21af23b98570781c90de75f439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:59-73 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:60-74 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060ProberBindTable\u0060 names \u0060xyz.xszq.bot.chunithm.database.ProberBindTable\u0060 in one and \u0060xyz.xszq.bot.maimai.database.ProberBindTable\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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b1486fc9dc60786b1d23dece3643f48e5a07d889ef78bf844c7d033ef8249d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): maimai/src/main/kotlin/maimai/database/MaimaiPreviewSettingsTable.kt:60-74 | maimai/src/main/kotlin/maimai/database/MaimaiPreviewSettingsTable.kt:81-95 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060maimai/src/main/kotlin/maimai/database/MaimaiPreviewSettingsTable.kt:60\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":"maimai/src/main/kotlin/maimai/database/MaimaiPreviewSettingsTable.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cd022a22c4e6888d8385857c20e686a44a672829154bb357ffecd99e17071d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:251-264 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:334-347 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:251\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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69ac58024b8ec28a18340976423d0475625c61ad023116c8b5c88d1934f54d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:102-115 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:98-111 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:102\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"679c2ada87783903c4e1c0e71b889b5ad9a39b422bfe427bbedb5a775b5e73f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/music/Level.kt:21-34 | maimai/src/main/kotlin/maimai/music/Level.kt:21-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. 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":"chunithm/src/main/kotlin/chunithm/music/Level.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ba8131ebb6da0926d85aef58a8f081f64ad9b5a09b28b07ac043ebf8457a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): maimai/src/main/kotlin/maimai/music/Rating.kt:16-29 | maimai/src/main/kotlin/maimai/music/Rating.kt:74-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/music/Rating.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"79203c4bea9103651f401f77f00f7391f26530fdeaa6dc814091ba5c7866db42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3057-3070 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3211-3224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3057}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbf19900566ca6be87851f7ea130e332e84de5db392a5df27038d7ab4c1ccda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3501-3514 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3703-3716 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3501\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3501}}}],"partialFingerprints":{"codehealthFindingId/v1":"02750fb762fd62408368dde6d8dea6e96a97aa9b5a6b1ccd568e2ba4311fc166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3037-3049 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3155-3167 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3169-3181 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3183-3195 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3037}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c56c3ceee7b6d2c757edf66091ad71921e3a3a5a37b265898d927f96ed1e4b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1473-1485 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1504-1516 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1554-1566 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abd517956e26dff574c996a32928dff61b5489fea4189642c449c047da54f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:186-198 | maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt:231-243 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:186\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":"chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"457c61d15c2dab9899e14ab6915ddb3ce3b3357f14bae4654f77724da8e0dae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:257-269 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:393-405 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/ImageController.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:257\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"99880c2b0bdd567421cffc4ef4c564cb08c1227dc8a3de26e860d56fe5d83d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:619-631 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:653-665 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:666\u0060 calls \u0060mul\u0060 and \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:632\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba3d3eeae62580e92e3d182fcc028cfd3ca2d5634dda5a0b2e884167b137ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:402-413 | maimai/src/main/kotlin/maimai/api/LXNS.kt:221-232 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"146c2c6ac3ecbf7f50ee32f61e14e60b16377a2f5e8e125f8cb1a4156f330077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:142-153 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:131-142 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/AliasesSearch.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:142\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: \u0060MusicNameAlias\u0060 names \u0060xyz.xszq.bot.chunithm.music.MusicNameAlias\u0060 in one and \u0060xyz.xszq.bot.maimai.music.MusicNameAlias\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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6381d968904239d98dd1c4c90bc80a3d86ad1e095c9fbdc25ade7232b15a66e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:206-217 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:190-200 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/AliasesSearch.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbf77685e86abbad38f3f24499bfc000032f025689cc3d8c0f9844e3d0e3357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:142-153 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:134-145 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:142\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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"880779764e1bcb4f55740f8de6d311a9abc471aa730e3bb87bd970ff09c9fbcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:195-206 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:190-201 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d096356b27512409c7d5d8073e0b1e2a52c917ce49a22398644ac85c171f5244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:383-394 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:707-718 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:383\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"178c61d3689708cfda7101a4c5947426edaab05a6738ea7497cf4de25c7b240f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:91-102 | maimai/src/main/kotlin/maimai/database/MaimaiMusicAliasTable.kt:80-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:91\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":"chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f22eac889fe3939fe8644f5eb94c36f23ba4e193af98621d29469eb757a128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1683-1694 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1698-1709 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1683}}}],"partialFingerprints":{"codehealthFindingId/v1":"c631d7d41051bf64aff576a96bf0b53d931c03f2e4bf99d247ad46d43cd4380f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:201-211 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:196-206 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060LXNS\u0060 names \u0060xyz.xszq.bot.chunithm.api.LXNS\u0060 in one and \u0060xyz.xszq.bot.maimai.api.LXNS\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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"14acd0f8663a8c4193fd1f20ade9c983f5684a0251c5b0dc5a74333c546d2afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:408-418 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:733-743 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/ImageController.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:408\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"22862e076bf56dc11444f9bb98cc31a5f95bb7e3a215bb709866788ae99d499c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1452-1462 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1717-1727 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"76225a20670fc053de3754c6cf6f4084390933960c6917d6ee32499040925f08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2456-2466 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2503-2513 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2501\u0060 calls \u0060getBitLength\u0060 and \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2454\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2456}}}],"partialFingerprints":{"codehealthFindingId/v1":"3676c320458258600d8cec1eb049ee13637ce9cbe5f4d77547e359731909fb4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3393-3403 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3595-3605 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3393\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3393}}}],"partialFingerprints":{"codehealthFindingId/v1":"df631ce2c42b51cf483aa5e652ab8531f0b058d50602aa776abc8d4bb5fe5b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3442-3452 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3644-3654 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3442\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3442}}}],"partialFingerprints":{"codehealthFindingId/v1":"256a1aa1cde9f08bb59b9579a2001b493dc803bc4fae1f801e3dfd23d290db57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:225-234 | chunithm/src/main/kotlin/chunithm/api/LXNS.kt:316-325 | chunithm/src/main/kotlin/chunithm/api/LXNS.kt:368-377 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cb06fed1a4553a93b1c9a5d2111f749199df56543a24acfc5dbbd7ea5dde4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:882-892 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:900-910 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:919-929 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"850b58829e4b57c31e2d3107f735fc6a1f41562da1cdfd2b7ac34b6a0cdf0fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:186-195 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:173-181 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/AliasesSearch.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e95f50427a95dc48905fede078980f2196641a1a9e0cd1c8aba17a28f0caa39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:249-258 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:231-240 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/AliasesSearch.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd58b0148a2a3d4685839ce2e6210e9fd387e23648c2ad15687508e9e6c2878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:370-379 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:696-705 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/ImageController.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:370\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afd98e72d047ebf62861547569b5074f6615342a011d1dd8ab827c8672e5b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:432-441 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:758-767 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:432\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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"b131a80209074846283ee859e16ab5f9925a11276deb873b2ca844b2ab5bd37b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:454-463 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:780-789 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:454\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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7a2278b800cbc5c70690659b9ab9a8b5e365935f407a8ab1d2948bc8dadb10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt:135-144 | maimai/src/main/kotlin/maimai/database/RhythmGameSettingsTable.kt:136-145 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/database/RhythmGameSettingsTable.kt\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. 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":"chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1bf95f78e4b5a890d46144d4b3eb05e17ddd39b64a8b433e4408aa2cff6167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:290-299 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:359-368 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/query/ComboQuery.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7826692bd426811f1c3aa9fdd42036e8ba5b97e3252adbe55fe7b4f71339f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3484-3493 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3686-3695 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3484\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3484}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cdd2507d119aba2bdebe711ad1fa7923047d752368c4866af81a61f2a309e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2105-2114 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2180-2189 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2226-2235 \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 \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2105\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b638e52e0f179e0647b9c0dd19d7dbc4df015fdb671e914764ec181cbd946f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:89-97 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:90-98 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt: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. Note first that the copies are not typed on the same thing: \u0060RhythmGameSettingsTable\u0060 names \u0060xyz.xszq.bot.chunithm.database.RhythmGameSettingsTable\u0060 in one and \u0060xyz.xszq.bot.maimai.database.RhythmGameSettingsTable\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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f637a7f2c00238fb97383f97f764ee73b2d173d83a709c16e8d5c6f8e86328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:79-87 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:75-83 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b47b77abcc33b03941fed6a98be6a230bfd589092d2379d0deaf541c0eddb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:171-179 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:166-174 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"3939b28c9bfcd2f17c66fd065fee992724aaa3aef5aafff56ee7bf6805429c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/image/templates/LevelTemplate.kt:72-80 | maimai/src/main/kotlin/maimai/component/image/templates/LevelTemplate.kt:162-169 \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 \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/LevelTemplate.kt:72\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"chunithm/src/main/kotlin/chunithm/component/image/templates/LevelTemplate.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7998d2cb2c47b18c1566b3244e36c0420e971a886492612b61ca3b30823b467e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:61-69 | chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:123-131 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:61\u0060 it does not close everything it opens, so those exact 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":"chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7420e8876d611ed2c0d18d7538dbc35e910a7fe93c88d76de619aed61af581e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:113-121 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:149-157 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/query/ComboQuery.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e19110aa5f4f34967b25a40e85e31f024e6f17a534117ba475fa6a48e0b2fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/Message.kt:116-124 | src/main/kotlin/xyz/xszq/bot/Message.kt:127-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/Message.kt:116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/Message.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acc95f520540e4e03e7d0e4cfa329a8576da4c2647220c92757800243e741da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2910-2918 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2945-2953 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2910\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2910}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97095f0ac01a697eefbd3768dd90a6690656e7fefdceb72293f9aacad3cdb02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/llm/LLMClient.kt:60-68 | src/main/kotlin/xyz/xszq/bot/llm/LLMClient.kt:124-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/llm/LLMClient.kt:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/llm/LLMClient.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da00feb9f3b7af8cd2a57ef3739e98be8bbf6c28e0a034b27183813d60ce420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:306-313 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:447-454 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/ImageController.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:306\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":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cfaf0d0ec0ac3cb6026cc10d27d2a108b5900aa04a83c0bf9058af841cfeda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:429-436 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:754-761 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/ImageController.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:429\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b8cbe24cb9ed2fb52a94136fac26ea9e80738bc0d437844b15955b223dcb0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:709-716 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:1069-1076 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"459802b29a9eb5496867e0996883c7053c4e7973321f271d08f2290d4709a9df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:71-79 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:85-93 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/query/ComboQuery.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e1df23478191ca31e1dc1160852b47c361944c618264f21830b9a64a14c393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): maimai/src/main/kotlin/maimai/controller/ImageController.kt:519-526 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:554-560 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060maimai/src/main/kotlin/maimai/controller/ImageController.kt:516\u0060 calls \u0060params\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/ImageController.kt:552\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":"maimai/src/main/kotlin/maimai/controller/ImageController.kt"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd118a51a8b629b2cd607b8e258c056171e8fa1ea32f847f8e7e69f2bc416cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2127-2134 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2202-2209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2127\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7596ab54b2a01f9e90e397bef04311193e1aa42207dcbca06b34f6c8411cda0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3423-3430 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3625-3632 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3423}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5521d187e3a886f8ae461d61e569d9a32809536723ce58df1969b2428f6c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:171-177 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:161-167 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/AliasesSearch.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32c2b7553dd8b8731ebf1225d87ad2a9a0dc2dc362754ad904f49f2ad7806f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CosineSimilarity.kt:15-26 | maimai/src/main/kotlin/maimai/component/CosineSimilarity.kt:15-26 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CosineSimilarity.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CosineSimilarity.kt\u0060 as WHOLE FILES: 95% 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":"chunithm/src/main/kotlin/chunithm/component/CosineSimilarity.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1132657e5bed8534e451b2750cf34a8d507ee782eaadedcae6ad4fdf88452e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:129-136 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:196-203 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/query/ComboQuery.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:129\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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbeb370ef64674787aa32b5a338b3916f5201567d3adb5cb75aa7117ccaa15d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1502-1507 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1552-1557 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1739-1744 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"453583362cccf6e95997de99aa7182f9b567ca5e9a48c763e4edd011ca44f187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:303-308 | maimai/src/main/kotlin/maimai/api/LXNS.kt:447-452 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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 \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt:303\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ba3235dee2c774c2004d6422d71e1ed01369881b1d93ccea7dfe54f286bfa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:222-227 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:217-222 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:222\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c614492d708fe0e3f3976ea9ba3f4a7818d808162658e6751927bf876b1a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt:60-65 | maimai/src/main/kotlin/maimai/database/ProberBindTable.kt:61-66 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/database/ProberBindTable.kt\u0060 as WHOLE FILES: 95% 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 3 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 \u0060chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d738c9adfc3f90be8b4fe8353c3edcb46da72cdc85e722246ca2959252c9a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:201-206 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:270-275 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/query/ComboQuery.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:201\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"982826e238d7506a03ec06371f7a17712169ae69fca4395b1ecd64b216b18f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2290-2296 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2302-2307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:2290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"69513d68cb648fd1578d7dbce6966c671f195b934f884deb4c494e13890c8c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:296-300 | maimai/src/main/kotlin/maimai/component/AliasesSearch.kt:275-279 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/AliasesSearch.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt:296\u0060 it does not close everything it opens, so those exact 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: \u0060MusicInfo\u0060 names \u0060xyz.xszq.bot.chunithm.music.MusicInfo\u0060 in one and \u0060xyz.xszq.bot.maimai.music.MusicInfo\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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d87405b4ccc617d8b224f7aa1e81b3d43d28a34ea11fc54866a707191f9aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:240-246 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:235-241 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12e1050258d54365e683a988c46645d1da849037f96a7dcd7f72c0391668c92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:255-261 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:250-256 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c049ec395c95975d5595f12df056f7d82f32e973d1ae6cf2c83340b31e605464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): meme/src/main/kotlin/meme/sekai/SekaiSticker.kt:95-100 | meme/src/main/kotlin/meme/sekai/SekaiSticker.kt:108-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060meme/src/main/kotlin/meme/sekai/SekaiSticker.kt:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"meme/src/main/kotlin/meme/sekai/SekaiSticker.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d496b6ba8a6f489b598d18b6f8b22bac2daf87828a0da3dc8adf80f693bbe7f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1391-1395 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3786-3790 \u2014 both copies are in the same file, so extract the block 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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9a570eb0d84be182d82da44520ce775534de585f093c38958363a3b4443670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3127-3132 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3281-3286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3127\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3127}}}],"partialFingerprints":{"codehealthFindingId/v1":"060b84a41f4992d9dc8c09a3e7c9fc10f451cc35910c5cc87427bd556a7fe0a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverDescData.kt:16-24 | maimai/src/main/kotlin/maimai/component/CoverDescData.kt:16-24 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverDescData.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverDescData.kt\u0060 as WHOLE FILES: 95% 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":"chunithm/src/main/kotlin/chunithm/component/CoverDescData.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c4edaf1d7dd3e60f3a9b9e1812f27517720b82628a6c1b2cc00fd8d7d43294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): audio/src/main/kotlin/audio/Audio.kt:142-153 | text/src/main/kotlin/text/Text.kt:142-153 \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":"audio/src/main/kotlin/audio/Audio.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"97db5f91a60d9c1011dba49938433f4ee58521b4cad42c92265168385604f320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:557-565 | maimai/src/main/kotlin/maimai/api/LXNS.kt:289-297 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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. 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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2b198c4e6c8ee0ac3a8dd9a2f52b8111820e28ebb71d3ec030286408d0a99d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt:44-51 | maimai/src/main/kotlin/maimai/component/MarkdownTemplates.kt:48-55 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MarkdownTemplates.kt\u0060 as WHOLE FILES: 88% 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 3 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":"chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70e970b11fd2ccbee7fbf281e05b5b9c371aa7d0b99b9f7c6aab5b20fdcdf0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:835-850 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:1085-1100 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a36c9f3f98927c9c56e75b9071b51d3421166fe7ebb6b04c4357d6a7a45b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt:79-84 | maimai/src/main/kotlin/maimai/database/ProberBindTable.kt:109-114 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/database/ProberBindTable.kt\u0060 as WHOLE FILES: 95% 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 3 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 \u0060chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/database/ProberBindTable.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e649e35444b45ee685ee63b8fdcb00080c0565aa3393d8ff858bdf7fc9ea0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/QQBindTable.kt:23-27 | maimai/src/main/kotlin/maimai/database/QQBindTable.kt:47-51 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/database/QQBindTable.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/database/QQBindTable.kt\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 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":"chunithm/src/main/kotlin/chunithm/database/QQBindTable.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"43043bd4cd69fa6f5fd12b66af41b3326a02f58b5cc184e39d1bfb1eb5557299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt:96-101 | maimai/src/main/kotlin/maimai/database/RhythmGameSettingsTable.kt:97-102 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/database/RhythmGameSettingsTable.kt\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. Note first that the copies are not typed on the same thing: \u0060PlayerSettings\u0060 names \u0060xyz.xszq.bot.chunithm.music.PlayerSettings\u0060 in one and \u0060xyz.xszq.bot.maimai.music.PlayerSettings\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":"chunithm/src/main/kotlin/chunithm/database/RhythmGameSettingsTable.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b593124562a0aee83cc556773bcb8d0ce49069c24efcabfabf3c2f8a2075a58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/music/MusicInfo.kt:69-75 | maimai/src/main/kotlin/maimai/music/MusicInfo.kt:46-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. 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":"chunithm/src/main/kotlin/chunithm/music/MusicInfo.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d2cf381d12c3779c58060c870e22429d57e1ae99349aa70ca27a5fb6264547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt:186-190 | maimai/src/main/kotlin/maimai/query/ComboQuery.kt:255-259 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/query/ComboQuery.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"425dc64fd7316119143aa95aa2ed7eb0bc7209083806db6da4e4252dad0b949c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:29-33 | maimai/src/main/kotlin/maimai/database/MaimaiMusicAliasTable.kt:26-30 \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 \u0060chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:29\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddf27553da8cd4e7fe22314a780fdfd46ef5063b88d28f4590c72cf6e65f87d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:45-49 | maimai/src/main/kotlin/maimai/database/MaimaiMusicAliasTable.kt:39-43 \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 \u0060chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:45\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0c6c7610daa2e7ff369526df6ef41a59a63d3a1e1a87d114555d5e713a6a14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:70-75 | maimai/src/main/kotlin/maimai/database/MaimaiMusicAliasTable.kt:62-67 \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 \u0060chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasTable.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cab526110c100745062b0c136da2f889deace041ed381281b7ecb5c26b66c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasVoteTable.kt:57-61 | maimai/src/main/kotlin/maimai/database/MaimaiMusicAliasVoteTable.kt:57-61 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasVoteTable.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/database/MaimaiMusicAliasVoteTable.kt\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasVoteTable.kt:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/database/ChunithmMusicAliasVoteTable.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3d9301948701618856ff8f46ecb160c0cab861b8b387c553d7a2c71394a2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/Controller.kt:335-350 | maimai/src/main/kotlin/maimai/controller/Controller.kt:413-428 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/Controller.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/Controller.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/Controller.kt:335\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":"chunithm/src/main/kotlin/chunithm/controller/Controller.kt"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde3aca2b71a345911df8f66185d4225b0734419ef91d9680707d7c4f906001b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:234-249 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:317-332 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:234\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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff654b8076a65398785cb964ef567966263d2deb45dd69eefa8f227979e349b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:238-252 | maimai/src/main/kotlin/maimai/controller/ImageController.kt:374-388 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/ImageController.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/controller/ImageController.kt:238\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"chunithm/src/main/kotlin/chunithm/controller/ImageController.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c633efbd00649d6c40c16e0e87441df13fd606ce2c4267d5164ed787a28078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:257-271 | maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt:282-296 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:257\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60b17300aa9d14b9f9833a92b3ec083600405ce7cfb1751b60122d28c056667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): maimai/src/main/kotlin/maimai/controller/GuessController.kt:583-597 | random/src/main/kotlin/random/RandomPlugin.kt:227-241 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060maimai/src/main/kotlin/maimai/controller/GuessController.kt:583\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":"maimai/src/main/kotlin/maimai/controller/GuessController.kt"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ded2cf1a5fbd1865917d8ac1ef1904808ccf3b2927fdb0e77b99a2a96c5f8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:219-232 | maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt:302-315 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt:219\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc81301b7e05965034669374b2f9da948257e66840e3acddcc11a2f7d2e47c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:181-193 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:176-188 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:181\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"820e9ab336335936d60bac8af18390c080a32981140e094d907f5a739939f605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:203-214 | maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt:248-259 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt:203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"436b0c021da77d567fa711b97574699ed5d551644ccd9a0069ce3d179667e6fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt:81-91 | maimai/src/main/kotlin/maimai/component/MarkdownTemplates.kt:85-95 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MarkdownTemplates.kt\u0060 as WHOLE FILES: 88% 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 3 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 \u0060chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt:81\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":"chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d106d05ea7dbc3ca8a71f49ab4763ba2f5e1b65998bfd03340eb03a705b2b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:195-205 | maimai/src/main/kotlin/maimai/controller/MusicController.kt:285-295 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/controller/MusicController.kt:195\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d827eac748968db2852af0694fa78720d680aede4f2c7a11da815b2557624b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt:116-125 | maimai/src/main/kotlin/maimai/component/MarkdownTemplates.kt:120-129 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/MarkdownTemplates.kt\u0060 as WHOLE FILES: 88% 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 3 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":"chunithm/src/main/kotlin/chunithm/component/MarkdownTemplates.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c4ab3fe567aa30494028656b5126d1526c8e241389342ded84f0c4559abe86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:208-216 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:203-211 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6243125ceecc599258107181944fc27011cdb86910cf48f0bf557be19500471d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:75-83 | chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:152-160 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:71-79 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15b9d35ff31a800f9483bb5801dbd05f1cce6a03839f574bcb67eb6a872483b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:237-244 | chunithm/src/main/kotlin/chunithm/api/LXNS.kt:435-442 | maimai/src/main/kotlin/maimai/api/DivingFish.kt:206-213 | maimai/src/main/kotlin/maimai/api/LXNS.kt:140-147 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/DivingFish.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060chunithm/src/main/kotlin/chunithm/api/DivingFish.kt:237\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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"928d9b290eb5e084a7eff7ce1007dfb7181151eb486cca214f780fbc2518eed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:121-128 | maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt:117-124 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt:121\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d35545425cff4825eca111b3c2850f8e8b3f267b1bdde7c902ceb3a8548a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:463-469 | maimai/src/main/kotlin/maimai/api/LXNS.kt:172-178 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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 \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt:463\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: \u0060ProberBindTable\u0060 names \u0060xyz.xszq.bot.chunithm.database.ProberBindTable\u0060 in one and \u0060xyz.xszq.bot.maimai.database.ProberBindTable\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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9b9f4ba3b90483e8976ce008c27bbce66b4aee4a028cbd7c8a682829ce8167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:535-540 | maimai/src/main/kotlin/maimai/api/LXNS.kt:267-272 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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 \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt:535\u0060 it does not close everything it opens, so those exact 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: \u0060QQBindTable\u0060 names \u0060xyz.xszq.bot.chunithm.database.QQBindTable\u0060 in one and \u0060xyz.xszq.bot.maimai.database.QQBindTable\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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"240620f1b54c55d468a3529092fab3ab8aa6772c9207450d13fc75a966c48adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): chunithm/src/main/kotlin/chunithm/api/LXNS.kt:419-423 | maimai/src/main/kotlin/maimai/api/LXNS.kt:238-242 \u2014 before extracting anything, compare \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt\u0060 and \u0060maimai/src/main/kotlin/maimai/api/LXNS.kt\u0060 as WHOLE FILES: this scan already matched 13 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 \u0060chunithm/src/main/kotlin/chunithm/api/LXNS.kt:419\u0060 it begins part-way through the construct above it, so those exact 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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9df0a9199f78855629b47720c98f20754e9180f35261707e890324d2144ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1256-1261 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1292-1297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1256\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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58dc4a9e8101cebb7eac18537f9908b710cee4f08bcc81ec2d1b2ffd57c190f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:1321-1326 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3752-3757 \u2014 both copies are in the same file, so extract the block 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":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e97cdee49fdd3b2dbf679485711a2c39294c9ae02d69ec573e4c087e7865007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3020-3024 | src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt:3135-3139 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/crypto/Ed25519.kt"},"region":{"startLine":3020}}}],"partialFingerprints":{"codehealthFindingId/v1":"259efb665b6cdb425dbd16eee9f33b0387ce8ed81942f34d6a664524b8a8aa21"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: :shinobu: :shinobu: abstractness 0.02, instability 0.00, distance 0.98 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"15ca70c3feb474c3ab291f1f65576203dd2caab9c1a0fbc93c15db756de34f9a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MaimaiQuery (LCOM4 4): MaimaiQuery\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e353b9453f0fdd969bc24847e82c08511b0cb75f7816ca7206d07926bb560a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: maimai/src/main/kotlin/maimai/controller/MusicController.kt: maimai/src/main/kotlin/maimai/controller/MusicController.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in MusicController.setRoute at line 77. 3 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:19:04 \u002B08:00\u0027 --until=\u00272026-10-28 10:19:04 \u002B08:00\u0027 --full-history --no-merges -- maimai/src/main/kotlin/maimai/controller/MusicController.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/MusicController.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e704812a79a987a40efd182242d0373e76bfd97356fe23d3621bbd338d74c6ed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: chunithm/src/main/kotlin/chunithm/controller/MusicController.kt: chunithm/src/main/kotlin/chunithm/controller/MusicController.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in MusicController.setRoute at line 60. 3 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:19:04 \u002B08:00\u0027 --until=\u00272026-10-28 10:19:04 \u002B08:00\u0027 --full-history --no-merges -- chunithm/src/main/kotlin/chunithm/controller/MusicController.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1c0e23753d91e539db5aae4569765d32e841be09275cb92d2b9b9e2cc456a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: maimai/src/main/kotlin/maimai/controller/SettingsController.kt: maimai/src/main/kotlin/maimai/controller/SettingsController.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in SettingsController.parsePreviewArgument at line 441. 1 of those changes was a fix/bug commit, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:19:04 \u002B08:00\u0027 --until=\u00272026-10-28 10:19:04 \u002B08:00\u0027 --full-history --no-merges -- maimai/src/main/kotlin/maimai/controller/SettingsController.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/SettingsController.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"7301b7ba8bcca4dcb06f715372e537b4f77b9335e0239f349656f62e3954d66b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/main/kotlin/xyz/xszq/bot/webhook/WebhookDispatcher.kt: src/main/kotlin/xyz/xszq/bot/webhook/WebhookDispatcher.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in WebhookDispatcher.dispatch at line 110. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:19:04 \u002B08:00\u0027 --until=\u00272026-10-28 10:19:04 \u002B08:00\u0027 --full-history --no-merges -- src/main/kotlin/xyz/xszq/bot/webhook/WebhookDispatcher.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/webhook/WebhookDispatcher.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"32779daa26709c946aabae4a8b0eb44b08cfc528eddd588397157b0bd2647820"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: maimai/src/main/kotlin/maimai/controller/ApiController.kt: maimai/src/main/kotlin/maimai/controller/ApiController.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ApiController.listen at line 119. 3 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:19:04 \u002B08:00\u0027 --until=\u00272026-10-28 10:19:04 \u002B08:00\u0027 --full-history --no-merges -- maimai/src/main/kotlin/maimai/controller/ApiController.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/ApiController.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"25315852bb59fdedcfc682321614cfdff94c2d3a0648426a6425357c561a23cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: audio/src/main/kotlin/audio/touhou/Touhou.kt: audio/src/main/kotlin/audio/touhou/Touhou.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in Touhou.guess at line 107. 2 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:19:04 \u002B08:00\u0027 --until=\u00272026-10-28 10:19:04 \u002B08:00\u0027 --full-history --no-merges -- audio/src/main/kotlin/audio/touhou/Touhou.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"audio/src/main/kotlin/audio/touhou/Touhou.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf16d73e005323bf264b4cb91d17827a0c45c3086802864aa7b7ff0d7bc7a3ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt: shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in LayoutEngine.measure at line 45. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:19:04 \u002B08:00\u0027 --until=\u00272026-10-28 10:19:04 \u002B08:00\u0027 --full-history --no-merges -- shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shinobu/src/main/kotlin/xyz/xszq/shinobu/style/LayoutEngine.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cd961a8066f8c05b5b5c1b41d7e5e05a8f68135c4c517bc559155aa502ef66"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/main/kotlin/xyz/xszq/bot/Message.kt: src/main/kotlin/xyz/xszq/bot/Message.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MessageKt.reply at line 90. 1 of those changes was a fix/bug commit, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:19:04 \u002B08:00\u0027 --until=\u00272026-10-28 10:19:04 \u002B08:00\u0027 --full-history --no-merges -- src/main/kotlin/xyz/xszq/bot/Message.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/Message.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"165a3c119d1940f2046280592c9c610fc7d034ad1e73d8a964520994b7c200ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt: maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in RatingTemplate.comboBests at line 117. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:19:04 \u002B08:00\u0027 --until=\u00272026-10-28 10:19:04 \u002B08:00\u0027 --full-history --no-merges -- maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"129cea09cda81534f147a5f44b75dc3957b7e7a3a4640636d6f27cc548985f51"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u652F\u6301\u5168\u90E8\u4E8B\u4EF6 \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":"src/main/kotlin/xyz/xszq/bot/subscribe/SubscribeManager.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be4fda38c0af08694264a290dbdb694055afedc3ae0ad9ebd001a2885f56679"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move URL to config \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":"maimai/src/main/kotlin/maimai/controller/Controller.kt"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dc8491556bdb45d125c9503473e9cea09a07256e152f4b92ea2e36b58f4cde"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u5168\u9762\u4F7F\u7528 Exception \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":"maimai/src/main/kotlin/maimai/controller/MusicController.kt"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"05954c47c6304d20a632a072c4f3a2d04142b333a9cbf81c187448c5d2823dad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u5168\u9762\u4F7F\u7528 Exception \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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64dbf0b0f00ea1b44b7b8fdc251b96d35f27549168911ffe99274f788cd1150"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u4E0D\u8981\u5728\u67E5\u5206\u5668\u7AEF\u5F15\u5165\u4EFB\u4F55\u76F4\u63A5\u67E5\u8868 \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":"maimai/src/main/kotlin/maimai/api/LXNS.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7399c26c040108b1ef130053f94415cc50d75df9505701fb142f37a9952b4d2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u56FD\u670D\u6700\u65B0\u7248\u672C\u4E0D\u6B62\u4E00\u4E2A\uFF0C\u6682\u65F6\u5148\u5C4F\u853DfilterParams.newestVersion \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":"chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"47164a0b0f8b14faed18781f68a576f56963c4aecf209c1fb1977bf05725af9a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u4F18\u5316\u8FD9\u6BB5\u4E34\u65F6\u5B9E\u73B0 \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":"audio/src/main/kotlin/audio/voice/TTSParser.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a1e848b6b17d2cf2b6320e23c1fa81b63cc0544bc14c65ce1d6e58e6189c8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u652F\u6301 Extra \u96BE\u5EA6 \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":"audio/src/main/kotlin/audio/touhou/Touhou.kt"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"73285a0883482cbbb240b44049d51f50f25efea60eb51c5aa7a1728d7a217cb7"}},{"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 \u0060build.gradle.kts\u0060 makes this repository a deployable product (line 19)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build.gradle.kts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade292efacb92fce772490239fede79f77d6199063763774ec51af66e9b8bedc"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060maimai\u0060 (12429 LoC, 202 module-visible types across 12 directories) overshoots its size bounds. 3 of 10 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 4.7/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/build.gradle.kts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94aa027970559cfda0b6308fcc94a9ce6bd2347a1725434c8c729ac6a5a75431"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (10949 LoC, 225 module-visible types across 18 directories) overshoots its size bounds. 3 of 10 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 4.7/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build.gradle.kts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7191788fa482b0a02b5006da70a5e4e03669b3f5b6701ab06a0d2791823629b4"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060chunithm\u0060 (7388 LoC, 155 module-visible types across 12 directories) overshoots its size bounds. 3 of 10 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 4.7/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/build.gradle.kts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5cb760b8df96aec9b8b3b7a9f13fe389b0b851f39eb272994aecf5d37c6e22"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b923d2a6d4bf9f3d17a069114b8d29dce8e6bc49ce4ae2931de0efd9a515de40"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"361d8456c7828015f3942aefd6a2cd92f7c27f47854a8db2bd027ef78cb3b45f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21b0170fd6c98cd44835f618b1cc026274838c0211319080b1e6813da107cb7c"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3fbadb2d6d12bd90e4b1f4767a80690b96e53a601539986f1e723999186ef13b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f9aad5ae0ae4b194909d4b95da87093140352ceb58e038d4ff7772a721e61827"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bee16a916192bc47803c755fa5c777c01a15fb56e69ce46b43bdf718adcb77fa"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D37","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e96dfd6d93fe913fb2e9028610c982dbd322c76ecf26cfdd7734b74da991d0f"}},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Java 22: build.gradle.kts declares Java 22 as this project\u0027s Gradle toolchain, and Java 22, a non-LTS release, superseded by Java 23 on 2024-09-17. An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2024-09-17 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build.gradle.kts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5cec9862bfdcf20652ddd53374dde4d6377e53f6807be85fd0e94692c11186"}},{"ruleId":"C1","level":"warning","message":{"text":"No data-protection/encryption: No encryption usage (javax.crypto\u0027s Cipher in ENCRYPT_MODE, Tink, Jasypt, Spring Security\u0027s Encryptors, Jetpack Security\u0027s EncryptedSharedPreferences or EncryptedFile, the Android Keystore, SQLCipher, pgcrypto) was found, and this repository persists personal data in the model cited here \u2014 sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"feedback/src/main/kotlin/xyz/xszq/bot/feedback/database/FeedbackEmailTable.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33215f2504b541b635f3626493612ef5cfb84f1b1c4bb3289183d52ab081afb"}},{"ruleId":"C4","level":"note","message":{"text":"Partial data-retention evidence: A retention mechanism is present, but the data-lifecycle is not yet complete \u2014 missing: an expiry limit \u2014 a declared maximum age / TTL after which the data is no longer kept."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e6c843eccaff7ffcfe5241125b74768c2364055ab6678b12b10d47f44086afa4"}},{"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":"P12","level":"warning","message":{"text":"Test failure does not fail the CI gate: \u0060continue-on-error: true\u0060 lets the step or job that runs \u0060./gradlew test\u0060 fail without failing the pipeline \u2014 the suite can go red and the change still merges. Remove it from the test step, or quarantine the specific failing tests instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/test.yml"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46a5077e4d538c71799a99c43159f818356a7206da3d71357443383f0267355"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/test.yml"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060build.gradle.kts\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build.gradle.kts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4369de275300dac0d50dbff2ad6a475e44a0d9d95c5ef0a8fa46bbc9b71411d0"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient {\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/ApiController.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"53200bf2311fda6a4785ff6e9f4ed36fc2f428ae273caee5546f0767f13ffbd2"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/MusicController.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc994d70ffedcaff12de50d81d0991ed62d1ed7bed5040e332a29e64f5d3bd0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient {\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/controller/UpdateController.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b594154c322feda1668b77537664d85c2f75afb2327a7427ea2e3ac98b668fc5"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient {\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"meme/src/main/kotlin/meme/MemeAPI.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"267c23a313d7a8a170829b5fc4ee6df9e574ef05dd1776859648cd8bea68aa7e"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient {\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"random/src/main/kotlin/random/RandomPlugin.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0da9e0a920cd86982a211b77bbcf73c2dcd896a1fdd83aba4eeeb26cb226ec7"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient {\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/llm/LLMClient.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"22747c97885de0ca0ef88b108cdf515ea87c2a0682a560a6d4d0c4bf4a153978"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/service/OpenAPI.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a24cf5a6a346b9e9c002076ac032c87cb3d537a2044212450d2233123bdd8c"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/service/TencentCOS.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e44e737c33135f3b64c86b7009ae2bcb31e0e22f8e03e58d4f6d0b39420b3a"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/util/File.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0596e801074ffdaec597f3ae79c5c030d0192e3641e436789a676e36b8df8153"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060HttpClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/webhook/WebhookForwarder.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1b8c07e866d6835722b31ec6d7738154aa2e4c8a6f4310220b204e63899184"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by Exposed SchemaUtils.create (no migration path): Exposed SchemaUtils.create builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt a versioned migration tool such as Flyway or Liquibase, so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main/kotlin/xyz/xszq/bot/BotRuntime.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7479d6fddbf0c78da64683e44e96d78fd7b484713bb31cf1b321f4e1ec225514"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by Exposed SchemaUtils.create (no migration path): Exposed SchemaUtils.create builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt a versioned migration tool such as Flyway or Liquibase, so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"random/src/main/kotlin/random/RandomPlugin.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5290cc3d3a463ac6a22fe1cecd6a5e1244b140436284a1721bc06b149a36ade"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by Exposed SchemaUtils.create (no migration path): Exposed SchemaUtils.create builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt a versioned migration tool such as Flyway or Liquibase, so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/Maimai.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7df076fe57ec5889049b9f896e9fd811c0c5b85802410ca71f29bde4182e0d"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by Exposed SchemaUtils.create (no migration path): Exposed SchemaUtils.create builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt a versioned migration tool such as Flyway or Liquibase, so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"feedback/src/main/kotlin/xyz/xszq/bot/feedback/Feedback.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c926d495661484aeb32f95ed11460f1f95cefa8ce6f3cedddb31b908d3378d45"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by Exposed SchemaUtils.create (no migration path): Exposed SchemaUtils.create builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt a versioned migration tool such as Flyway or Liquibase, so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/Chunithm.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fd182aea7a2cfdb6524c57e83a7aa92f65357c7d5f81a556f901b6a92e9cb2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!force \u0026\u0026 currentSignature == indexedMusicSignature\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt, maimai/src/main/kotlin/maimai/component/AliasesSearch.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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa2c0a0609623dccca7970af17d4ef5b2164bb004b12ad7a833e136e16b97ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!force \u0026\u0026 latestSignature == indexedMusicSignature\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt, maimai/src/main/kotlin/maimai/component/AliasesSearch.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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"6747c55c0d32f6e1d3f95898aff4ae07a6003c240b7aeb7af29ed7fbca60a91a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(body.code == 404 || body.code == 400) \u0026\u0026 user is UserQueryParams.Self\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/api/LXNS.kt, maimai/src/main/kotlin/maimai/api/LXNS.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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4329d88ccf7d5b2d84f8e31f3fb44c0d427345c8b7215462fc13950891565fbb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.size \u003C 2 || args[0].isBlank() || args[1].isBlank()\u0060 appears character-identically in 3 files \u2014 chunithm/src/main/kotlin/chunithm/controller/MusicController.kt, feedback/src/main/kotlin/xyz/xszq/bot/feedback/Feedback.kt, maimai/src/main/kotlin/maimai/controller/MusicController.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":"chunithm/src/main/kotlin/chunithm/controller/MusicController.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aecc5d0506a9116ddb9d29ddb1c1d2b809718487fddbb6c8b165f2f9adcc60e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060chart.music.id == nowId \u0026\u0026 chart.difficulty == nowDiff\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt, maimai/src/main/kotlin/maimai/query/ComboQuery.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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcf129fe46ca3c9c9bbf6f61876dfce486c8e3025a3a7e46ca6829f6ec23d30"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060desc == other.desc \u0026\u0026 vec.contentEquals(other.vec)\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/component/CoverDescData.kt, maimai/src/main/kotlin/maimai/component/CoverDescData.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":"chunithm/src/main/kotlin/chunithm/component/CoverDescData.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49e1609785d5992a7c907efc2f9cd073eb97c219f0f443f9945d85d74873a23"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060designer.isNotBlank() \u0026\u0026 designer != \u0022-\u0022\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt, maimai/src/main/kotlin/maimai/query/ComboQuery.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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a972144d5628a3d4ee1546173ed033ec88e39739c60fa035a97eccef48beba91"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060filter.chart(record.chart) \u0026\u0026 filter.record(record)\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt, maimai/src/main/kotlin/maimai/query/ComboQuery.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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5c424dc6e1bfb83141bc96145f3cd0c872d1b62c2e9d400acb33065b426c86"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i \u003E 1 \u0026\u0026 j \u003E 1 \u0026\u0026 x[i - 1] == y[j - 2] \u0026\u0026 x[i - 2] == y[j - 1]\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt, maimai/src/main/kotlin/maimai/component/AliasesSearch.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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f97a00ca66aa3cceb5b5db6d968abba0295baa3fa94ce2eb025d792edb7c772"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.isFile \u0026\u0026 it.extension.lowercase() in coverExtensions\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt, maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.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":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7383fd22589bb19976f4a5275b3a1f8e260a374709fd01c61df9aefb1278ddc6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name.startsWith(\u0022id\u0022) \u0026\u0026 name.substringAfter(\u0022id\u0022).trim().toIntOrNull() != null\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt, maimai/src/main/kotlin/maimai/component/AliasesSearch.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":"chunithm/src/main/kotlin/chunithm/component/AliasesSearch.kt"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bbd253be4cc30a3b94906edd01088a517857322ae4766ef091b502cdba72ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060original.width \u003E MAX_DIMENSION || original.height \u003E MAX_DIMENSION\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt, maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.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":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8322765211efaac15b6f43b46b1e9df9d71d3c308f21f7683d0660ccf9f60a15"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.isScoreList \u0026\u0026 params.filter ?.isAllRequired == true\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt, maimai/src/main/kotlin/maimai/component/image/templates/RatingTemplate.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":"chunithm/src/main/kotlin/chunithm/component/image/templates/RatingTemplate.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"8637978d09f636773b8f47f27deb3e93689d44d445518bb09bd106b4b6a11900"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060requestIds.isNotEmpty() \u0026\u0026 requestIds.size \u003C 1000\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/api/DivingFish.kt, maimai/src/main/kotlin/maimai/api/DivingFish.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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e266fd10d4f7f3fd74465d9bb10393b37d864e1504a804ab7d12362b7cf78d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.oldRatingList.isEmpty() \u0026\u0026 response.newRatingList.isEmpty()\u0060 appears character-identically in 4 files \u2014 chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt, chunithm/src/main/kotlin/chunithm/controller/ImageController.kt, maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt, maimai/src/main/kotlin/maimai/controller/ImageController.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":"chunithm/src/main/kotlin/chunithm/component/ChunithmQuery.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa19aea1ab9001381f03e3c4876c7a59dd1091ac25a3355b3353955248363644"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status != HttpStatusCode.TooManyRequests || attempt \u003E= 4\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/api/DivingFish.kt, maimai/src/main/kotlin/maimai/api/DivingFish.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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1005a75cfae133830aa43f49352a61b202fc2b239004cff63860c3ea4463ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status == HttpStatusCode.BadRequest || response.status == HttpStatusCode.Unauthorized\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/api/LXNS.kt, maimai/src/main/kotlin/maimai/api/LXNS.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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0b0a93f00a66bcb6a447b0e76072337dfd15da4c7a34cabaea2bbcfa782e87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status == HttpStatusCode.RequestURITooLong \u0026\u0026 requestIds.isNotEmpty() \u0026\u0026 attempt == 1\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/api/DivingFish.kt, maimai/src/main/kotlin/maimai/api/DivingFish.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":"chunithm/src/main/kotlin/chunithm/api/DivingFish.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16765843463613cbe15f81a1e05403e2a21a5ea48ddcbeb28ff3b91860b1827"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status == HttpStatusCode.TooManyRequests \u0026\u0026 retry \u003C 3\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/api/LXNS.kt, maimai/src/main/kotlin/maimai/api/LXNS.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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8227960210a9f6ef1e1bb090122221bc88ab6e1191d6b2a8f92a343773cf0e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this == null || required \u0026\u0026 noRecordFilter()\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt, maimai/src/main/kotlin/maimai/query/ComboQuery.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":"chunithm/src/main/kotlin/chunithm/query/ComboQuery.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6f5645a55622a8cbe4e7e6c386b2b3df61137fba28d5e51ff992973bfffcb0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060total % 50 == 0 || index == files.size - 1\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt, maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.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":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ae5d807226be62246139851934fce4e84289c3ddedfbf6965f4429dcefc0ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060user !is UserQueryParams.Self || e !is UserNotFoundException\u0060 appears character-identically in 2 files \u2014 chunithm/src/main/kotlin/chunithm/api/LXNS.kt, maimai/src/main/kotlin/maimai/api/LXNS.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":"chunithm/src/main/kotlin/chunithm/api/LXNS.kt"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d8f0cd58c7894d633470226ec049a1b839542aaa0af492d2f9074f3aec02e8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"097bd8f48e2b6287d2dc4f3b8f0731bcb57f0d52eaf96845a7a8957d924353b9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadDescriptions\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"chunithm/src/main/kotlin/chunithm/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d1608a4f5c71dc5bf2d5e2ac61b83a4b46109dfede755d7df58001d1fa79ed"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d916d9f9c75e500c6e533938cf5113a1369938bd0bbf3e271c0459a14ca82c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadDescriptions\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/component/CoverEmbeddingGenerator.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81c47c2365af59b3b3c450d6f0987f92dae71ff7a04695fe4e9d6a53fd5dd76"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseImage\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bb6ef883bf2b9730ac1953e546f7634912d59658760dde2a6336ca17562de7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseScoreImage\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"maimai/src/main/kotlin/maimai/component/MaimaiQuery.kt"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec95f8fbd478545b3af2cb84f3af41faf1f986c42aa9cd9b6100563afa6b12f1"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.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-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":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":12,"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."]}]}