{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","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-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"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":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"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":"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":"TTS.run (cyclomatic 110): TTS.run has cyclomatic complexity 110 (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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ed405a789cc91849eda2586f493f362be9eaa002cf1e7d9fda7cdc4e3b4e2a"}},{"ruleId":"D1","level":"warning","message":{"text":"inference_webui.get_tts_wav (cyclomatic 73): inference_webui.get_tts_wav has cyclomatic complexity 73 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db293baecd6812a214223ec53eaf3a3a945976c95c227a69980765c923ce842"}},{"ruleId":"D1","level":"warning","message":{"text":"api.get_tts_wav (cyclomatic 57): api.get_tts_wav has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"54093e1c7a0fbdf81ebaa6fae0a48cf254377101f00596a0a3dd505471ad33ac"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiheadAttention.forward (cyclomatic 42): MultiheadAttention.forward has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"57709a06a4897bb022ee3898168bbfeea95d7d1f8ae520e5529ebb43473b1c29"}},{"ruleId":"D1","level":"warning","message":{"text":"patched_mha_with_cache.multi_head_attention_forward_patched (cyclomatic 42): patched_mha_with_cache.multi_head_attention_forward_patched has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/patched_mha_with_cache.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7942ce1666ba7f5c8e7eccaab51129c8b32b4de6b6a7d1ba58568d24d681d7"}},{"ruleId":"D1","level":"warning","message":{"text":"streaming.stream_v5_windows (cyclomatic 36): streaming.stream_v5_windows has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/streaming.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2792d37c160fec539371255b7f15698cf4f4ec768752ca86eaab071dcee406a4"}},{"ruleId":"D1","level":"warning","message":{"text":"LangSegmenter.getTexts (cyclomatic 36): LangSegmenter.getTexts has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/LangSegmenter/langsegmenter.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb17b8267de5ca0f0c3d37dbd93b250af94a4e6f113ff673a9c4c507159100f2"}},{"ruleId":"D1","level":"warning","message":{"text":"AccelInference.infer_stream (cyclomatic 29): AccelInference.infer_stream has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/adapter.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"79db184dddb2c9209f4e11b4b741e70a96068feb9ce90faef9c1dc11058def68"}},{"ruleId":"D1","level":"warning","message":{"text":"DDP.forward (cyclomatic 29): DDP.forward has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/ddp_utils.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42ce0bd0800b7b86116a8940cb1bfd0865b63737712a9db8bbe5f1da01ad791"}},{"ruleId":"D1","level":"warning","message":{"text":"streaming.validate_streaming_options (cyclomatic 27): streaming.validate_streaming_options 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":"GPT_SoVITS/TTS_infer_pack/streaming.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"072acebcaad93643fb2f28f1f0f9846c745a37847376c5f79938d1e082f35048"}},{"ruleId":"D1","level":"warning","message":{"text":"inference_webui.change_sovits_weights (cyclomatic 27): inference_webui.change_sovits_weights 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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fb1baec17785442c8a45a5dd51d915cfad43ea987f37a0e652868325c6ad3f"}},{"ruleId":"D1","level":"warning","message":{"text":"korean.hangul_number (cyclomatic 27): korean.hangul_number has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/korean.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6646f0bd6f37d11d6e6b957b72fadf7914c56f88d2b386e20021e68aee7694b"}},{"ruleId":"D1","level":"warning","message":{"text":"api.get_phones_and_bert (cyclomatic 27): api.get_phones_and_bert has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"1437e83ae6a1b2ac2d6fe61fbed39c7d1f5e5c6c7c72a867f45a30fb0825ad99"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRunner.decode_step (cyclomatic 26): ModelRunner.decode_step has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/runner.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"89aa686fc5514dcc87a9ce90827c2787ef5eb950172e0572010cc1c97aeaa664"}},{"ruleId":"D1","level":"warning","message":{"text":"TextPreprocessor.get_phones_and_bert (cyclomatic 26): TextPreprocessor.get_phones_and_bert has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e83dead606f06c47e419c4dbca8a1e5f5032f894c4be1ce585837d2ecccb14"}},{"ruleId":"D1","level":"warning","message":{"text":"inference_webui.get_phones_and_bert (cyclomatic 26): inference_webui.get_phones_and_bert has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d5bd839c28492dd17b3efb31cd37f992b5fc3320af311d075e8ec2cb83c1ba"}},{"ruleId":"D1","level":"warning","message":{"text":"Text2SemanticDecoder.infer_panel_batch_infer (cyclomatic 25): Text2SemanticDecoder.infer_panel_batch_infer has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e81df7bdc2e9e5031a5b44e7d42e713962325b24da11d731e5aed3e3d9f4882"}},{"ruleId":"D1","level":"warning","message":{"text":"ToneSandhi._neural_sandhi (cyclomatic 25): ToneSandhi._neural_sandhi has cyclomatic complexity 25 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/tone_sandhi.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69970947135326b7353938fbf62c504559c0f925a5bb604096b3dcbcc76f966"}},{"ruleId":"D1","level":"warning","message":{"text":"Text2SemanticDecoder.infer_panel_naive (cyclomatic 23): Text2SemanticDecoder.infer_panel_naive 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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1247696089498fbcd7c01d7c06f93b130c2a72839983dd34272c2c810738dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"streaming.v2_token_chunks (cyclomatic 23): streaming.v2_token_chunks 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":"GPT_SoVITS/TTS_infer_pack/streaming.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ae1e05b2cec38b03afce8694fd3d9ebcb43ce2a8739800a7fb08ec723dae39"}},{"ruleId":"D1","level":"warning","message":{"text":"s2_train._run (cyclomatic 22): s2_train._run has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f26a14b538e2a3e69646a5b714ce84272bc733c6f4ae30ad76de316c6123245"}},{"ruleId":"D1","level":"warning","message":{"text":"webui.open1abc (cyclomatic 22): webui.open1abc has cyclomatic complexity 22 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"45715e82c80e32292a3264249145cf7632ed86fe31d018b5e8db1bbca3a45d91"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRunner.decode_step (cyclomatic 21): ModelRunner.decode_step has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"36022295a7b9ecf76ce9cbbb6835b10bc9833685c04aaea209db625fd332c293"}},{"ruleId":"D1","level":"warning","message":{"text":"TTS.using_vocoder_synthesis_batched_infer (cyclomatic 20): TTS.using_vocoder_synthesis_batched_infer has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b655946cb3973c0ceef22470c962a93de8bd908366ee25f484a975245a0a9b0"}},{"ruleId":"D1","level":"warning","message":{"text":"s2_train.train_and_evaluate (cyclomatic 20): s2_train.train_and_evaluate has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a62f92015a7c00a1ec1677f59a5393ba3cd85b30f941615f9ff0aca08d64bce"}},{"ruleId":"D1","level":"warning","message":{"text":"export_torch_script_v3v4.export_1 (cyclomatic 19): export_torch_script_v3v4.export_1 has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"733fccee151aa6c31cd0342b99578d5aef2dfbc75e14ee1a38dde5ccd11a1923"}},{"ruleId":"D1","level":"warning","message":{"text":"stream_v2pro.test_stream (cyclomatic 19): stream_v2pro.test_stream has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/stream_v2pro.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9ba8f772393bb52f09c3f9fe6345f276f7fc5c45de0838c660fdb55b988c54"}},{"ruleId":"D1","level":"warning","message":{"text":"chinese2._g2p (cyclomatic 19): chinese2._g2p has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/chinese2.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1190d98534dd3a08719ef2882c0975d4cf86dc3a252196158248dffd217b13d"}},{"ruleId":"D1","level":"warning","message":{"text":"api_v2.tts_handle (cyclomatic 18): api_v2.tts_handle 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":"api_v2.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de528c8a08af7d319aa02342a422932b36ff9241728ddc9173689178a76cecd"}},{"ruleId":"D1","level":"warning","message":{"text":"TTS_Config.__init__ (cyclomatic 17): TTS_Config.__init__ has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7c06eff688af75c8927df456c0dbab5cc6d6cdfaf2053a387bbb8e67172dcd"}},{"ruleId":"D1","level":"warning","message":{"text":"TTS.enable_half_precision (cyclomatic 17): TTS.enable_half_precision 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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"965d5e1fb437ce501dfae0e0d422e9033fdc3eea8c89bc5158681541177f896e"}},{"ruleId":"D1","level":"warning","message":{"text":"inference_webui_fast.change_sovits_weights (cyclomatic 17): inference_webui_fast.change_sovits_weights 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":"GPT_SoVITS/inference_webui_fast.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd8b5f94b142862838463efd89c2a9a329448a7c8607fb635d671aaa04268cb"}},{"ruleId":"D1","level":"warning","message":{"text":"japanese.pyopenjtalk_g2p_prosody (cyclomatic 17): japanese.pyopenjtalk_g2p_prosody 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":"GPT_SoVITS/text/japanese.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c98dff9fbd05401a7026e10c861be8179d17ed04ddf79e5160f158149ecd3e8"}},{"ruleId":"D1","level":"warning","message":{"text":"ToneSandhi._three_sandhi (cyclomatic 16): ToneSandhi._three_sandhi has cyclomatic complexity 16 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/tone_sandhi.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a33d331d9a0d8c953f0f58feac2a8887710dcd7aab7bcb5678fa7c7b3046ec"}},{"ruleId":"D2","level":"warning","message":{"text":"TTS.run (cognitive 226): TTS.run has cognitive complexity 226 (threshold 15). Drivers by points: if/else 55 (107 pts), ternaries 23 (67 pts), boolean chains 28, loops 8 (23 pts), error handling 1 (nesting depth added 111). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42636cc1c0deae5a14844dda1c1e25b76c945743af6c6a3d1a73505c555660d"}},{"ruleId":"D2","level":"warning","message":{"text":"inference_webui.get_tts_wav (cognitive 156): inference_webui.get_tts_wav has cognitive complexity 156 (threshold 15). Drivers by points: if/else 51 (94 pts), ternaries 12 (35 pts), loops 7 (16 pts), boolean chains 6, error handling 1 (5 pts) (nesting depth added 79). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cbe90dbb334a50e18f14e014e2b14dd205c00688f81704b6748d0da3194a5c"}},{"ruleId":"D2","level":"warning","message":{"text":"api.get_tts_wav (cognitive 135): api.get_tts_wav has cognitive complexity 135 (threshold 15). Drivers by points: if/else 44 (89 pts), ternaries 12 (32 pts), loops 3 (8 pts), error handling 1 (4 pts), boolean chains 2 (nesting depth added 73). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b74499579a414ec9d896c3d051758cc119ee8c2306f1cbdcc6a141c6fa710c"}},{"ruleId":"D2","level":"warning","message":{"text":"LangSegmenter.getTexts (cognitive 85): LangSegmenter.getTexts has cognitive complexity 85 (threshold 15). Drivers by points: if/else 29 (72 pts), loops 5 (10 pts), boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/LangSegmenter/langsegmenter.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c04f9ad99a2793333254cf16030866bbeb9063dd3b8904d507feaad75496f39"}},{"ruleId":"D2","level":"warning","message":{"text":"streaming.stream_v5_windows (cognitive 79): streaming.stream_v5_windows has cognitive complexity 79 (threshold 15). Drivers by points: if/else 20 (48 pts), ternaries 8 (21 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/streaming.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4560dedd758cdd70295dab3aaea48a23eb1d01ef1d502e7f53a7ab7deba1a63"}},{"ruleId":"D2","level":"warning","message":{"text":"patched_mha_with_cache.multi_head_attention_forward_patched (cognitive 76): patched_mha_with_cache.multi_head_attention_forward_patched has cognitive complexity 76 (threshold 15). Drivers by points: if/else 49 (71 pts), boolean chains 5 (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":"GPT_SoVITS/AR/modules/patched_mha_with_cache.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"780b83f6d458d461c3b45d0254fc6f45e22dd8295560d6796fa3259602d641a1"}},{"ruleId":"D2","level":"warning","message":{"text":"chinese2._g2p (cognitive 64): chinese2._g2p has cognitive complexity 64 (threshold 15). Drivers by points: if/else 17 (49 pts), loops 5 (13 pts), ternaries 1 (2 pts) (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/chinese2.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d439180a01b392bed4e0c98318724b4ca3c4f6b303b69f894858d28a61b16757"}},{"ruleId":"D2","level":"warning","message":{"text":"DDP.forward (cognitive 57): DDP.forward has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (43 pts), boolean chains 8, loops 2 (6 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/ddp_utils.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08464af8b2c6c6a49ed2a13acf62c72bedfdf7b4b00aa9ac379ee572bb1ca93"}},{"ruleId":"D2","level":"warning","message":{"text":"streaming.v2_token_chunks (cognitive 56): streaming.v2_token_chunks has cognitive complexity 56 (threshold 15). Drivers by points: if/else 13 (36 pts), ternaries 4 (12 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/streaming.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1126b818955c89e84c5ebd299ec05957fc945d384bd204dbcf3ccc2ce9a4a6"}},{"ruleId":"D2","level":"warning","message":{"text":"AccelInference.infer_stream (cognitive 53): AccelInference.infer_stream has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (36 pts), ternaries 3 (8 pts), boolean chains 6, error handling 1 (2 pts), loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/adapter.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e90a0a5e52d0fa1a1cacdec87125d7047d7e6d62a36fb5aaa613495a8b7be6"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2SemanticDecoder.infer_panel_batch_infer (cognitive 49): Text2SemanticDecoder.infer_panel_batch_infer has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 6 (14 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9eba16689ede724824ee6678f214556e7a9c2c34516b8c918c384cef597496c"}},{"ruleId":"D2","level":"warning","message":{"text":"s2_train.train_and_evaluate (cognitive 47): s2_train.train_and_evaluate has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (37 pts), error handling 1 (4 pts), ternaries 1 (3 pts), boolean chains 2, loops 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":"GPT_SoVITS/s2_train.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"814e3308181951d1c2674daf5ceb9fcb0b11f699e03654c395a4e635ddde0e26"}},{"ruleId":"D2","level":"warning","message":{"text":"webui.open1abc (cognitive 46): webui.open1abc has cognitive complexity 46 (threshold 15). Drivers by points: loops 10 (28 pts), if/else 6 (9 pts), boolean chains 4, ternaries 1 (3 pts), error handling 1 (2 pts) (nesting depth added 24). 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":"webui.py"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"c042ac604d8058d5f5278e167dd11d2dfcb4cc56075ef5513bae661a050697cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2SemanticDecoder.infer_panel_naive (cognitive 41): Text2SemanticDecoder.infer_panel_naive has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 5, ternaries 1 (4 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"57dc19eff50ca16e76ea3520e9e785fbd8794873a010ba2dea65916b0f97e290"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiheadAttention.forward (cognitive 41): MultiheadAttention.forward has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 11, ternaries 3 (9 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a55c1e3b0235296f93752d38919d0a9795458d4658b1a31be21b8695cbf5b6b"}},{"ruleId":"D2","level":"warning","message":{"text":"inference_webui.change_sovits_weights (cognitive 41): inference_webui.change_sovits_weights has cognitive complexity 41 (threshold 15). Drivers by points: if/else 22 (26 pts), ternaries 7 (10 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ed9bf8b67c78476bd4faa095ea29ffa772b2c4de76c839e024baaf684a9f57"}},{"ruleId":"D2","level":"warning","message":{"text":"api.get_phones_and_bert (cognitive 40): api.get_phones_and_bert has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 8 (15 pts), boolean chains 4, ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ce9e0a0421913f0730755b0dbd2a60a5994c8f4f7f533292328cb54c90cbca"}},{"ruleId":"D2","level":"warning","message":{"text":"TextPreprocessor.get_phones_and_bert (cognitive 39): TextPreprocessor.get_phones_and_bert has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 8 (15 pts), boolean chains 4 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d74a0ce5f5e9e517f290ea9f7b470b6737c1bc9cbc476e7bdd86761baf0782"}},{"ruleId":"D2","level":"warning","message":{"text":"inference_webui.get_phones_and_bert (cognitive 39): inference_webui.get_phones_and_bert has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 8 (15 pts), boolean chains 4 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"563cc401be21c4e6e203e8495f5d47c3abde4dce92653ae9edcdaad76e8e2e12"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRunner.decode_step (cognitive 36): ModelRunner.decode_step has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 4, loops 3, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/runner.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"431b368409a47d9babea879f64d376e7f117a6cdbcee8bde59d260016c388808"}},{"ruleId":"D2","level":"warning","message":{"text":"chinese._g2p (cognitive 34): chinese._g2p has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (29 pts), loops 3 (5 pts) (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/chinese.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8accdefd6dc911f1dda28952cbd344de078511796620bc20584ead5fffa2073"}},{"ruleId":"D2","level":"warning","message":{"text":"T2SEngine._background_loop (cognitive 33): T2SEngine._background_loop has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 5 (11 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80217a490b0a1b91cad06c4aa49d3c6be54403b633baf7b7650452b023b909c"}},{"ruleId":"D2","level":"warning","message":{"text":"s2_train._run (cognitive 33): s2_train._run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 4 (8 pts), loops 3, boolean chains 2, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"239f8b718a3584b0593bcf56c7ec8bc45c9425eb3b37082a08b4cfe0b2b3f29f"}},{"ruleId":"D2","level":"warning","message":{"text":"my_model_ckpt.on_train_epoch_end (cognitive 30): my_model_ckpt.on_train_epoch_end has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (8 pts), error handling 1 (5 pts), boolean chains 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s1_train.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"988d9d634a421f6ea5076aa14f41f1bb70e295848c71ca8b3240c4f983a652bf"}},{"ruleId":"D2","level":"warning","message":{"text":"s2_train_v3_lora.train_and_evaluate (cognitive 30): s2_train_v3_lora.train_and_evaluate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train_v3_lora.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a63f8264cd23008c9fedaa1f730b383028c0c4f0964151972b2ecf896a1523"}},{"ruleId":"D2","level":"warning","message":{"text":"dataset.prepare_onnx_input (cognitive 29): dataset.prepare_onnx_input has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 3 (7 pts), error handling 1 (3 pts), loops 1 (nesting depth added 12). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/g2pw/dataset.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5422f7a4ec9bd2dada86675e7614e2d7ed43e221f6cef5a302cb530099e69d"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRunner.decode_step (cognitive 28): ModelRunner.decode_step has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 3, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85e707d1a72401300e5b3584f2fecacd5e3852883e2a23075f1629c8875bdb8"}},{"ruleId":"D2","level":"warning","message":{"text":"cantonese.jyuping_to_initials_finals_tones (cognitive 28): cantonese.jyuping_to_initials_finals_tones has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (5 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/cantonese.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6efdf5bc43c7ba9d6d002bb057ea22eb5b4b264c02f6917c83b8ad88069d42"}},{"ruleId":"D2","level":"warning","message":{"text":"TTS.enable_half_precision (cognitive 27): TTS.enable_half_precision has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 1, ternaries 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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"485fc07e55773ac370ab1322515f616b42fa6f6d1c601eb6979b8222bed51c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"streaming.validate_streaming_options (cognitive 27): streaming.validate_streaming_options has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 12, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/streaming.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c862b282596c38debffdf68a14ae785d9ff71139840dacafc1ec9f4ddca783e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ToneSandhi._three_sandhi (cognitive 27): ToneSandhi._three_sandhi has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (6 pts), boolean chains 3 (nesting depth added 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/tone_sandhi.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c4d3c01d209bca6b590169e4782803799887ab920c1c065e5df8bda169a1da"}},{"ruleId":"D2","level":"warning","message":{"text":"ScaledAdam._get_clipping_scale (cognitive 25): ScaledAdam._get_clipping_scale has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (3 pts), error handling 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 9). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/optim.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"36be24ccabc4a257cd0f86581edcb8bc63f9fddaa494b18b3b07d6f56d11649d"}},{"ruleId":"D2","level":"warning","message":{"text":"TTS.to_batch (cognitive 25): TTS.to_batch has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 6 (11 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"d558438124612b8af0a97cb4346c2c469169a6af53ae153b27b43d41477161e1"}},{"ruleId":"D2","level":"warning","message":{"text":"inference_webui_fast.change_sovits_weights (cognitive 25): inference_webui_fast.change_sovits_weights has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 7 (10 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui_fast.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9113b32b8c5990eb1a39bd160d3e930ffd73769ea2439a001ff2fa2a48cb99"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_v2pro.test_stream (cognitive 25): stream_v2pro.test_stream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 3, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/stream_v2pro.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"62137123462a3c13850c5fe0eef05625084a45379ca930481c6d06d530911e33"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiheadAttention.__init__ (cognitive 24): MultiheadAttention.__init__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), ternaries 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"540d78346af9df27feb06ba0c89f947a8287c50a2e5f9243e8d6c9ce799ad874"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiheadAttention.__init__ (cognitive 24): MultiheadAttention.__init__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), ternaries 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/activation_onnx.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c143ee6efd120232d48f63c022a1b89e69d4139d73335d51f1525402b567ca77"}},{"ruleId":"D2","level":"warning","message":{"text":"TTS.using_vocoder_synthesis_batched_infer (cognitive 24): TTS.using_vocoder_synthesis_batched_infer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 6, loops 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ff09b1a6e6e451ef68d398a5c76ebf5f9676db8150f94559c3609271398c1e"}},{"ruleId":"D2","level":"warning","message":{"text":"export_torch_script_v3v4.export_1 (cognitive 24): export_torch_script_v3v4.export_1 has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (16 pts), ternaries 7, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaaccc8776682923d1e12198b90b5d53dedebdaa005ab060283738415520509d"}},{"ruleId":"D2","level":"warning","message":{"text":"CFM.inference (cognitive 24): CFM.inference has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 5 (9 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e1417deea3ca6d61f6760ede2a95791f583a68c92776a0121a98e192f8afa7"}},{"ruleId":"D2","level":"warning","message":{"text":"config.get_weights_names (cognitive 24): config.get_weights_names has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 6 (8 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9091af68b03de55528dfa2803fbb8c2f1ad6bfe9ca7ba552c0c926c245cd8f8b"}},{"ruleId":"D2","level":"warning","message":{"text":"s2_train_v3.train_and_evaluate (cognitive 23): s2_train_v3.train_and_evaluate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train_v3.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f94cd091f25c500d608afe380640624c79b9174d88a474fdabfe10c569c6ee"}},{"ruleId":"D2","level":"warning","message":{"text":"api_v2.tts_handle (cognitive 23): api_v2.tts_handle has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api_v2.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"435e49064b011e1172c33f2a95a5165bcf548afb810ba6e70b9d2973c5c7a086"}},{"ruleId":"D2","level":"warning","message":{"text":"T2SEngine._background_loop (cognitive 22): T2SEngine._background_loop has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (9 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"88501524e1790ea4b7c137b4497673bc679fe70b23b46d0306b9acfe9adcf639"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2SemanticDecoder.infer (cognitive 21): Text2SemanticDecoder.infer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model_onnx.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"91518f4355aa74356c76f021f9e7e09bfd4c1ebc761e86b9454a3ad12cb22eff"}},{"ruleId":"D2","level":"warning","message":{"text":"korean.hangul_number (cognitive 21): korean.hangul_number has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 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":"GPT_SoVITS/text/korean.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bda9a10402d28e6bb23e907c90f6814b5eaad9eb596886be3b27d150049022"}},{"ruleId":"D2","level":"warning","message":{"text":"api.get_sovits_weights (cognitive 21): api.get_sovits_weights has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"257a7117caee7263f5f534de9436a75ca74181dbd549ad1d9a53cc837b5cd83b"}},{"ruleId":"D2","level":"warning","message":{"text":"AccelInference.infer_batch (cognitive 20): AccelInference.infer_batch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (7 pts), ternaries 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/adapter.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b4b5eb9609bc0cc63d51b24f2a070d688beb978c10b45dd7ca98e9a8c9b7cd"}},{"ruleId":"D2","level":"warning","message":{"text":"TTS.audio_postprocess (cognitive 20): TTS.audio_postprocess has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1f4549d0c56e45cb8328583d9a105a3030f36e28fded1c9b2d367ba0d2079c"}},{"ruleId":"D2","level":"warning","message":{"text":"s2_train_v3_lora._run (cognitive 20): s2_train_v3_lora._run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3, ternaries 2, boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train_v3_lora.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36ef259b78a554a358050222cdf48e48f47895019eebd0d43000dce0d2d2700"}},{"ruleId":"D2","level":"warning","message":{"text":"japanese.pyopenjtalk_g2p_prosody (cognitive 20): japanese.pyopenjtalk_g2p_prosody has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/japanese.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b062c95a39030dfca797621465ac7de397834f32a4e4617ae2f2fc14620b571f"}},{"ruleId":"D2","level":"warning","message":{"text":"TTS.init_vits_weights (cognitive 19): TTS.init_vits_weights has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"b225ef6e8889dd7a73fa37fd1197a2d1060891183df15a37ff9ade0675c1ee49"}},{"ruleId":"D2","level":"warning","message":{"text":"TextPreprocessor.pre_seg_text (cognitive 19): TextPreprocessor.pre_seg_text has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (5 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"06da25440bb399012a14bb6d338d7041c217cdf05eb3c8bc576f453d184a11a0"}},{"ruleId":"D2","level":"warning","message":{"text":"TextAudioSpeakerLoader.__init__ (cognitive 19): TextAudioSpeakerLoader.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (4 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9328e620470be70d6ea39e2d9b6b4112e11bdc9d371997f41e49c078368392c8"}},{"ruleId":"D2","level":"warning","message":{"text":"s2_train_v3._run (cognitive 19): s2_train_v3._run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (4 pts), loops 2, boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train_v3.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9057c8be69b07719558270b440a22d5e0eec2dd87b0786a0d07429b1d8927ce"}},{"ruleId":"D2","level":"warning","message":{"text":"ToneSandhi._neural_sandhi (cognitive 19): ToneSandhi._neural_sandhi has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (5 pts), loops 2 (nesting depth added 2). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/tone_sandhi.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d189289f0b6e0221fddef6d4b9ed17878b3c4ec7d1a24c5b3a89dbb88a7c8ca"}},{"ruleId":"D2","level":"warning","message":{"text":"Text2SemanticDataset.init_batch (cognitive 18): Text2SemanticDataset.init_batch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 2 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/data/dataset.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1440130c96e4a2ba99216e948a5f2c53c56995044ab78dfe6cff47465a82abe3"}},{"ruleId":"D2","level":"warning","message":{"text":"ToneSandhi._merge_yi (cognitive 18): ToneSandhi._merge_yi has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, ternaries 1 (3 pts), loops 2 (nesting depth added 7). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/tone_sandhi.py"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"45addd19794e554dfef6183effecfc5922f5d8dad6a870a1da91f6203cf4e6de"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedBucketSampler.__init__ (cognitive 17): DistributedBucketSampler.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 2 (4 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":"GPT_SoVITS/AR/data/bucket_sampler.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"62acbae9d44859a0dfacee132e2876cb5c7281e8c4bbd2db7d149516a2f97fa3"}},{"ruleId":"D2","level":"warning","message":{"text":"TTS_Config.__init__ (cognitive 17): TTS_Config.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"2732505e012cda0d859301f46e3b996cc591fe7fde7d81e6d79b626a33876a10"}},{"ruleId":"D2","level":"warning","message":{"text":"DiT.forward (cognitive 17): DiT.forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/f5_tts/model/backbones/dit.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"430f7e1e797903e971fe5f8b53eb2cd84f78ea7580034dab15223a5248a392a6"}},{"ruleId":"D2","level":"warning","message":{"text":"cleaner.clean_text (cognitive 16): cleaner.clean_text has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/cleaner.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0f4f9d368d0aba6a933020a0a4ae356ee869594ee729bf44ec2f844ba9af87"}},{"ruleId":"D2","level":"warning","message":{"text":"en_G2p.qryword (cognitive 16): en_G2p.qryword has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/english.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c2f4b7a7c308dd16ed0b5e0a8ee7f0944c84053064e9763cb187bdf3092fa5"}},{"ruleId":"D2","level":"warning","message":{"text":"_G2PWBaseOnnxConverter._prepare_data (cognitive 16): _G2PWBaseOnnxConverter._prepare_data has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 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":"GPT_SoVITS/text/g2pw/onnx_api.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19dba512ce976c88d03153273a7f65661c11c9defe35b2bfb91ae52db0ecd59"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./webui.py: FileTooLong \u2014 1631 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1131 over it, 3.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7b9ce656cfd7f6b880fb3da6fdcfb60aa3a9a94e70950993113f60bcdc2085"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TTS_infer_pack/TTS.py: FileTooLong \u2014 1502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1002 over it, 3.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed9e25ad6b3c95826db0e04a2a5da9409b94d09c5da0fc859f55df163ba656d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: module/models.py: FileTooLong \u2014 1276 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 776 over it, 2.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0dc0e1873c44dde46a84472569325f90bff47ab44437135e435cbf56a16dd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GPT_SoVITS/inference_webui.py: FileTooLong \u2014 1272 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 772 over it, 2.54\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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dd987dd02d5cb55936e16a961886b6a0d69fe64215f957be41e02f529a74a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GPT_SoVITS/export_torch_script_v3v4.py: FileTooLong \u2014 887 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 387 over it, 1.77\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f55bc9163e316d520ceb3a54225427a51f1f0a347685205bd7c5d6a0cd44d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: module/models_onnx.py: FileTooLong \u2014 866 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 366 over it, 1.73\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":"GPT_SoVITS/module/models_onnx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8c5c7defef0fc42752649f73bdffb468470719b8b9e263f0230270d3439c90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GPT_SoVITS/export_torch_script.py: FileTooLong \u2014 815 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 315 over it, 1.63\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":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7c607556795e1a1d5e2df980fb4c8ec62cdfc47fb6ae2e4bad9c4a21a33081"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: module/data_utils.py: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 302 over it, 1.60\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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d718a727e6cc03fa31e28828230f41e76dd593a737285a538cb9cbac64b1f2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/t2s_model.py: FileTooLong \u2014 731 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 231 over it, 1.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2427ba1e83f81a2abbd21c283f4b85670a8ad1e060b56b4091159b51ef998ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: module/modules.py: FileTooLong \u2014 709 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 209 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/modules.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bee50bf5a9980ef8fc53b8351d0b128785c1e4bc0f07e489980f135c6b9931"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: module/attentions.py: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 35 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74941db8fabf6064254810d90c0570986f8a45cb54415844b3fa07a9745845b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GPT_SoVITS/s2_train.py: FileTooLong \u2014 520 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 20 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dafaf0d91e7c1c00066cc2f90ef1d6cc8a9dcec952a0ff27f38601dc43bc935"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 26 shared lines): GPT_SoVITS/module/models.py:860-933 | GPT_SoVITS/module/models.py:1269-1326 | GPT_SoVITS/module/models.py:1419-1478 | GPT_SoVITS/module/models_onnx.py:799-877 | GPT_SoVITS/module/models_onnx.py:1009-1063 \u2014 These 5 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"037193b9a3914fe876dcdf9a886520f3a7c821b1193a861736be6a2ada92af8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 35 shared lines): GPT_SoVITS/module/data_utils.py:200-276 | GPT_SoVITS/module/data_utils.py:448-514 | GPT_SoVITS/module/data_utils.py:667-725 | GPT_SoVITS/module/data_utils.py:897-972 \u2014 These 4 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"648674f248f384aad3e0e9eaaae6d4d7ff47af595eabebcaa36b73336aff12dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (100 shared lines): GPT_SoVITS/s2_train.py:92-323 | GPT_SoVITS/s2_train_v3.py:92-282 \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":"GPT_SoVITS/s2_train.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8988572de30839324081fafd149b546f70fea9f97b192fafdbe0f91edd6c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (80 shared lines): GPT_SoVITS/s2_train.py:327-587 | GPT_SoVITS/s2_train_v3.py:297-473 \u2014 These two members are variants of one another: 80 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04afd0fb33fa79942d7fe27e0ca78e0e68c822091069d625d9d82a9def88107"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:209-324 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:277-407 \u2014 These two members are variants of one another: 36 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b53048799cad4cb615067973e67c0feba52a0b9091a85a9a039d46411c7cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): GPT_SoVITS/module/attentions.py:295-309 | GPT_SoVITS/module/attentions_onnx.py:258-272 \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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc597e9d559dc72cf28fa89b10646f9b8606eb0b67f9a5b5ae4f0c1090d962f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): GPT_SoVITS/module/attentions.py:312-323 | GPT_SoVITS/module/attentions_onnx.py:275-286 \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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc64de2f60f2de31cdd4a06ca24559aaa8bf5ec696a3a2e6285d7d5620a8864"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): GPT_SoVITS/module/models.py:343-360 | GPT_SoVITS/module/models.py:378-389 | GPT_SoVITS/module/models.py:412-430 | GPT_SoVITS/module/models_onnx.py:285-302 | GPT_SoVITS/module/models_onnx.py:320-331 | GPT_SoVITS/module/models_onnx.py:354-372 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dedf9fe70ed059f38f6499a469405916037ba0317503ee9d838bc99a1bb5529"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): GPT_SoVITS/module/models.py:363-371 | GPT_SoVITS/module/models.py:392-398 | GPT_SoVITS/module/models.py:433-438 | GPT_SoVITS/module/models_onnx.py:305-313 | GPT_SoVITS/module/models_onnx.py:334-340 | GPT_SoVITS/module/models_onnx.py:375-380 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaa02c2273921a4fd0fedadab893bce30bf80b4e8babbb754ae29bbf05ae4b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): GPT_SoVITS/AR/data/dataset.py:55-113 | GPT_SoVITS/module/data_utils.py:25-107 | GPT_SoVITS/module/data_utils.py:287-370 | GPT_SoVITS/module/data_utils.py:525-608 | GPT_SoVITS/module/data_utils.py:736-819 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/data/dataset.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c480b5f10449fcf61ab152c3d65313b62380c1b1535f3f78907de3c2fc902ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): GPT_SoVITS/text/cantonese.py:97-103 | GPT_SoVITS/text/chinese.py:48-55 | GPT_SoVITS/text/chinese.py:59-66 | GPT_SoVITS/text/chinese2.py:63-70 | GPT_SoVITS/text/chinese2.py:306-313 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/cantonese.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"160607f2f3ff16a78f8d956bca35c742aedbb2d91a64b1c5855b68e15d3627b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GPT_SoVITS/AR/models/t2s_model.py:523-576 | GPT_SoVITS/AR/models/t2s_model.py:831-962 | GPT_SoVITS/export_torch_script.py:452-545 | GPT_SoVITS/stream_v2pro.py:30-91 \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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de97786aaa4d6e756624fbc04c1fdf719274dc3fa84157c257806cdfbd03bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GPT_SoVITS/TTS_infer_pack/TTS.py:705-766 | GPT_SoVITS/export_torch_script_v3v4.py:520-541 | GPT_SoVITS/inference_webui.py:483-510 | api.py:259-287 \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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1c1eb55fbee794f04685948fd663792ac21a545ca8aa004c34d7f567f1a4aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GPT_SoVITS/export_torch_script_v3v4.py:708-924 | GPT_SoVITS/export_torch_script_v3v4.py:938-1046 | GPT_SoVITS/export_torch_script_v3v4.py:1056-1118 | api.py:875-1115 \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":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"491242b10d374f79c1cada1e89a44d60e17509f95d4cfccdba5480108bff5a5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GPT_SoVITS/module/data_utils.py:110-134 | GPT_SoVITS/module/data_utils.py:376-394 | GPT_SoVITS/module/data_utils.py:614-632 | GPT_SoVITS/module/data_utils.py:825-843 \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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e867b0f15631d7a66c5ab0ac1e0a60a52935fba1bb421d1915a4dab73d2a35b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GPT_SoVITS/module/data_utils.py:137-145 | GPT_SoVITS/module/data_utils.py:397-427 | GPT_SoVITS/module/data_utils.py:635-646 | GPT_SoVITS/module/data_utils.py:846-876 \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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"af41fb3a4be862a0511a84de31867eba1d9e1f19c515af7a27ee84b8d6be0072"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GPT_SoVITS/module/models.py:936-972 | GPT_SoVITS/module/models.py:997-1040 | GPT_SoVITS/module/models.py:1045-1095 | GPT_SoVITS/module/models_onnx.py:880-906 \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cdf53370d082e7fdc0602a00f0786ffda4708eb563819142e2f51d133660ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): webui.py:784-849 | webui.py:874-940 | webui.py:964-1026 | webui.py:1061-1248 \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":"webui.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"07830f756a08e035bf143edd2328f630e83dd4b0b961aaf641ae059f59e12819"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): GPT_SoVITS/inference_webui.py:699-764 | api.py:548-611 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"71faa76f09d5d02e2b5d2e9f773cca3ba80315c18f6847428dad26c28455527e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): GPT_SoVITS/export_torch_script.py:637-706 | GPT_SoVITS/export_torch_script.py:720-824 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"3909e3bc6d0b21b400f44f63bbd261e3a5764d92d2fac60508342ef8e5bb7592"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): GPT_SoVITS/AR/modules/activation.py:94-178 | GPT_SoVITS/AR/modules/activation_onnx.py:35-128 \u2014 These two members are one piece of code written twice and then edited apart: 85 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cd3d9929bdcd6ef3b1a75fbee24976ba4f90db86144a0e7321fe389df65a13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): webui.py:507-574 | webui.py:604-666 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb8e20d677a68699bc98ecde5bc77e4d16e356be70ca3164b9cc9ccc08bb424"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): GPT_SoVITS/AR/models/t2s_model.py:356-406 | GPT_SoVITS/AR/models/t2s_model.py:451-510 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab38d04ebc11f4aaf3a9dbb05dc75faf9bc99515d2ad2083cbba4b31af3bb805"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): GPT_SoVITS/AR/models/t2s_model.py:262-353 | GPT_SoVITS/AR/models/t2s_model_onnx.py:251-290 \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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"55076daa75e89462e11f2e2dd7cbbf3dd4c3ba42482581f5e05fadfe8762852c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:326-375 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:372-428 \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":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"272f7607fbe5766b92dd62f6aa4b81a24fde0eb09d9fda80973f1690b8ae400c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): GPT_SoVITS/module/models.py:1331-1356 | GPT_SoVITS/module/models.py:1481-1520 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"4347f67228d8ebdf023679341261c8d7a0be52a517e64d4ad0ea389022df7d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): GPT_SoVITS/Accel/PyTorch/AR/export.py:329-373 | GPT_SoVITS/Accel/PyTorch/AR/export.py:377-429 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/export.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fde4e183836316b0ac4cf5cfff789032ea094a6fda61bd0da267836c5c6b33c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): GPT_SoVITS/module/attentions.py:229-258 | GPT_SoVITS/module/attentions_onnx.py:196-221 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ba8af138ff8f109452ccbfc4d57ca87a4b81a8ffdd82160a826ec91eb45dd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 31\u002B corresponding lines): GPT_SoVITS/AR/models/t2s_model.py:142-174 | GPT_SoVITS/AR/models/t2s_model.py:184-221 | GPT_SoVITS/export_torch_script.py:248-279 | GPT_SoVITS/export_torch_script.py:282-312 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 31 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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09b298a2c137bbeecd59e2881d3bb302233b15e6dcd59d03e3b3774c1b26723"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): GPT_SoVITS/module/models.py:1362-1382 | GPT_SoVITS/module/models.py:1526-1542 \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4fb2ee39839e0ff37e96d6165cf582a0eeade53906f763da7c3898dd421745"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:249-294 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:246-295 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e3797d624f00795808e6f59d5b59758583d002f094ee63618d743719ee11c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:201-246 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:204-243 \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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84fe1dccc90b8d8d0d8ac346a4b9d35308c3ebc766f1e8f704b1f900ce9a825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): GPT_SoVITS/AR/models/t2s_model_onnx.py:34-71 | GPT_SoVITS/export_torch_script.py:81-103 \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":"GPT_SoVITS/AR/models/t2s_model_onnx.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"48831fb434edc655f63a242aa00bee8d061c4ac387aa36a10945c0fe47c3e166"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): GPT_SoVITS/module/mel_processing.py:41-74 | GPT_SoVITS/module/mel_processing.py:94-143 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/mel_processing.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b72566809590c7c87112e96b38bb73aa9061992f6f1b80d3fc8a5706ad0d62a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): GPT_SoVITS/export_torch_script_v3v4.py:258-300 | GPT_SoVITS/export_torch_script_v3v4.py:338-380 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0b54460f13484f50517f446e63beabe5d06d0d115261f809d7e7a28833bad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): GPT_SoVITS/module/attentions.py:528-569 | GPT_SoVITS/module/attentions_onnx.py:49-97 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f8cab3952499bc1e1da75aa3526e5c0cad5d0c19852f29798123717bbfc9f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): GPT_SoVITS/text/tone_sandhi.py:680-702 | GPT_SoVITS/text/tone_sandhi.py:709-730 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/tone_sandhi.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05a1606aa76dbc0b55afae8cc745fc7adad9be1e61bb08e5494b0c08394f630"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:395-421 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:460-482 \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":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0a072f1d6dd94d9bbc1150d80163ec94cdc404dfefb797e5f465cb07b05c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): GPT_SoVITS/module/models.py:170-213 | GPT_SoVITS/module/models_onnx.py:162-205 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"38aa127a91f0b98b98f7dfa24f83b62d275043b7d3e79f316d17b07cfbbbac6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): GPT_SoVITS/export_torch_script_v3v4.py:403-440 | GPT_SoVITS/export_torch_script_v3v4.py:463-500 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a40e897b35596e6567b0594259cb0895f19b5bd556bc831a0b3134e0fc292b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): GPT_SoVITS/Accel/MLX/AR/backends/mlx_varlen.py:24-44 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:32-54 | GPT_SoVITS/Accel/PyTorch/AR/export.py:103-127 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/backends/mlx_varlen.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0b176b4a4697b9a4c83c61f978a5dea33bd577c0b5e819e68105ea98ed0ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): GPT_SoVITS/AR/models/t2s_lightning_module.py:43-81 | GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py:42-79 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_lightning_module.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fde8f9642882477c500bf377e6ec678c15ce9d60709650ca6966331de41d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): GPT_SoVITS/module/attentions.py:65-84 | GPT_SoVITS/module/attentions.py:572-595 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6770ea2c6dcac50f54abcf8c9a4baefd73d667c1e7396559c5a7d48f2aba7679"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): GPT_SoVITS/utils.py:121-142 | GPT_SoVITS/utils.py:146-175 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/utils.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bc081ad79acda61ec8bfba14d230d8795a997cac17941c0b582e679438e47a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): GPT_SoVITS/Accel/MLX/G2PW/model.py:175-204 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:175-206 \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":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"514498ba116805f282aec073495aa33a1dc2b9f45c2d006648b5458d1bf01ce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:105-128 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:169-196 \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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a56ed21f47c2bec7d55bb879f2aa91da490a6f33cf9c57d9514094382ef41e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): GPT_SoVITS/Accel/PyTorch/AR/export.py:82-100 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:241-257 \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":"GPT_SoVITS/Accel/PyTorch/AR/export.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"272460706e9926f4ae0f8a78342b72860b92062c7fd820fb45a27325d6ed1d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py:24-44 | GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:187-207 | GPT_SoVITS/Accel/MLX/G2PW/model.py:33-44 \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":"GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"176bc41a03171cad2285fd9bdc0ceee087fcacdbf832caa58584b4c40f7d7f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): GPT_SoVITS/AR/models/t2s_model_onnx.py:318-335 | GPT_SoVITS/onnx_export.py:107-130 \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":"GPT_SoVITS/AR/models/t2s_model_onnx.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d085d608b049c39bee3b0d8afd02d31b74b68605477bd52a6df283b6ea55a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): GPT_SoVITS/inference_webui.py:178-190 | api.py:508-521 \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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"088956a73093262623bb2450776b279c08bfc891ca99e958200f855e91ee67b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): GPT_SoVITS/module/models.py:573-591 | GPT_SoVITS/module/models_onnx.py:515-533 \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"41af2c938f91b601f55bb1e3fcb38c11836a3677d0cd4645f2a77df27c48bbc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py:32-50 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py:30-48 \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":"GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f469e20e3bb622f72c4957954c96633e1fbea5f6307b3ff9ee08e0d4f33ef483"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): GPT_SoVITS/module/attentions.py:612-638 | GPT_SoVITS/module/modules.py:411-432 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"784cfeec7827a0b9b38e8c77232d8e3d29efdba917982073380be2fdc4297f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): api.py:701-727 | api_v2.py:282-308 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd713ccf96b4f9d6de02171d15e9b7444f8123a12d2ba9f0dfa08dc58e7ef42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): GPT_SoVITS/AR/modules/scaling.py:141-155 | GPT_SoVITS/AR/modules/scaling.py:166-188 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/scaling.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7cac94aea814e3c94b808bb549706387909c4e8855d67c0d51cb125e7fc09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): GPT_SoVITS/eres2net/ERes2NetV2.py:241-251 | GPT_SoVITS/export_torch_script.py:881-893 \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":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2648741e2566ed692b4b631ccc40c755b3e096598983a13274301ed7eb9a1a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): GPT_SoVITS/module/commons.py:161-172 | GPT_SoVITS/module/commons.py:176-185 \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":"GPT_SoVITS/module/commons.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83f0b55be9ba658ecff268f99083344869dcfffa13459fa4d8a905ff11f9883"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): GPT_SoVITS/AR/models/t2s_lightning_module.py:20-40 | GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py:20-39 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_lightning_module.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1672d6e6cdab5ce2c6a82bc4f7eb19712b0d8f4296694c4e0e0037f62c1ee271"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): webui.py:272-296 | webui.py:303-326 \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":"webui.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce39638268ea774887ee19143e159027814e34d4ff67f04248812448fdde27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): GPT_SoVITS/Accel/MLX/G2PW/model.py:208-219 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:210-220 \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":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdb82a6791330373999d615db32d82c75eae8fa11b7cefababfbe3b743d8030"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): GPT_SoVITS/TTS_infer_pack/TTS.py:1098-1130 | GPT_SoVITS/inference_webui.py:862-875 | api.py:833-851 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"539bec9f6005fe4649eefe366e05295e4a86c0c908f5296e8793032e24dbfbcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:24-34 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:24-34 \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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fe6d203c66d64abac1a4c40e410197f3977926311b1ebe365dd1d1c82dae2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:185-194 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:187-196 \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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8689dbf3e359a1ef1fd61ccd182efbe0f2eb8289f4f28aa44429aa9d624680"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): GPT_SoVITS/Accel/MLX/AR/sample_funcs_mlx.py:117-132 | GPT_SoVITS/Accel/PyTorch/AR/sample_funcs.py:133-148 \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":"GPT_SoVITS/Accel/MLX/AR/sample_funcs_mlx.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b664825f74b8969f48aa78ebbed90c68bac5d7cb02c03117a82fb13e330e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): GPT_SoVITS/module/attentions.py:413-434 | GPT_SoVITS/module/attentions.py:463-485 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"87205b560f7f0228d01a9707c20e7ca2ca8dddf8b408ab4397fdbff7c5cee7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): GPT_SoVITS/prepare_datasets/2-get-sv.py:60-70 | GPT_SoVITS/sv.py:13-22 \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":"GPT_SoVITS/prepare_datasets/2-get-sv.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d63657cfb40bb7cb73b3975ab2c924663f41090a23899bc71a63709a23260b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): GPT_SoVITS/module/attentions.py:348-364 | GPT_SoVITS/module/attentions_onnx.py:311-328 \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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b9b1897452eb3861976c7d6dd18c734808a6da2255bb3893bdca1713a7741c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): api_v2.py:730-738 | api_v2.py:743-750 \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":"api_v2.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13b67f9df1c902c86a7597923f099bcc069546087d012b26b0c373b6aeabf76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): GPT_SoVITS/AR/modules/embedding.py:44-52 | GPT_SoVITS/AR/modules/embedding_onnx.py:44-50 \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":"GPT_SoVITS/AR/modules/embedding.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8cd63ae5e5ef4d865fa75afc479ee71452e20939a4abc4a60b2b0ae45ce61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): GPT_SoVITS/TTS_infer_pack/TTS.py:118-125 | GPT_SoVITS/inference_webui.py:605-611 \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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b7333431296c64b9b578d52e1a1a3bd0245938bd2bb7960ecb3c457029b8a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): GPT_SoVITS/module/losses.py:18-30 | tools/AP_BWE_main/models/model.py:413-423 \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":"GPT_SoVITS/module/losses.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ece386b0b2b92e58f023e376cfa3b32cd748e85368c578bbf495f64a488641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): GPT_SoVITS/Accel/MLX/G2PW/model.py:94-98 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:96-101 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55dba2cfc10838465fae83b787f868be880f31c68e088ed164ae9e792806181"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): GPT_SoVITS/text/tone_sandhi.py:733-739 | GPT_SoVITS/text/tone_sandhi.py:742-748 \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":"GPT_SoVITS/text/tone_sandhi.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"acba52ea27e9c4bff38f1537019aedb4fba749cdcb78c1684ceee06d0407f207"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): GPT_SoVITS/AR/models/t2s_model.py:237-243 | GPT_SoVITS/export_torch_script.py:322-328 \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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"520379b79dda3902d10663af12c27b4564b9ec596d77793f451d3d19b73982e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): GPT_SoVITS/prepare_datasets/2-get-sv.py:73-81 | GPT_SoVITS/sv.py:25-32 \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":"GPT_SoVITS/prepare_datasets/2-get-sv.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"093a246675f703761570656414ea8ba6d9902c8a823270af8bc1d39da954b19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): GPT_SoVITS/AR/models/utils.py:17-41 | GPT_SoVITS/AR/models/utils.py:45-74 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/utils.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"669084fce95f71474971e76b764d3bf8c467ecafb4ef4ef0ff71921732bd9d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:378-387 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:437-452 \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":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"22771fb769228ed458b94b637bec05f7b452c19ff10a588904aa42efad0b0309"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): GPT_SoVITS/module/models.py:611-621 | GPT_SoVITS/module/models_onnx.py:553-563 \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"73df0ca7c98b61cd875051963641244fd94cc30c7de537a71a87caa6e75c0bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py:116-125 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:138-147 \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":"GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd49e4dce6f694e88e96938256143c2104d5bd7c932bca7bdc67d5df7d3dc98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): GPT_SoVITS/TTS_infer_pack/TTS.py:563-568 | GPT_SoVITS/TTS_infer_pack/TTS.py:571-577 \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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"0857ffb0b87f6ef5df5bb31cf02e4718bcaa407e488ab72fb3d83b97bb226951"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): GPT_SoVITS/module/models.py:517-570 | GPT_SoVITS/module/models_onnx.py:459-512 | tools/AP_BWE_main/models/model.py:149-161 \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad797d25693aee74f8c49be22f759bea61914b7b2a67d4633d6c91f3284d0a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): GPT_SoVITS/text/g2pw/dataset.py:207-213 | GPT_SoVITS/text/g2pw/dataset.py:217-223 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/g2pw/dataset.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b7172b42883d419b8015bd43f968d421cdd7bc99350611871d62b197698874"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): webui.py:764-776 | webui.py:853-865 | webui.py:944-956 | webui.py:1030-1042 | webui.py:1252-1264 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"561666c814b9129dd21d0688bc19443ba07191ad68e9be302b64cd30a09038bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): GPT_SoVITS/export_torch_script_v3v4.py:504-516 | GPT_SoVITS/inference_webui.py:464-479 | api.py:241-255 \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":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff2e893c14c11257530a31588352357a893d3fd75cf35a2eec68f080f9b35cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): GPT_SoVITS/module/attentions.py:326-334 | GPT_SoVITS/module/attentions_onnx.py:289-297 \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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"7377816166c7a0aa83546b7d77a63b81e1c82dca0a8d453efe3a376e2a0157a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): GPT_SoVITS/module/models.py:629-637 | GPT_SoVITS/module/models_onnx.py:568-573 \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0324a579865fc950e1e638dcec97fdb941269f436c81941fc4800f9bb7b527f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py:55-60 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py:53-58 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:59-64 | GPT_SoVITS/Accel/PyTorch/AR/export.py:132-137 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"28784014ad110bc40977193915dfdfa5e1b50e1e5bc615517e5cd2eca8ba7358"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): GPT_SoVITS/export_torch_script.py:373-382 | GPT_SoVITS/onnx_export.py:214-222 \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":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3035d0336b4d41e7c3e4f58170e06bf2e054a79f2c0aead7a70e8491394550e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py:145-148 | GPT_SoVITS/inference_webui.py:1230-1233 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7551a65a56361504b259baafa017e18091176416aa1fda7bf15604b99e1f70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): GPT_SoVITS/f5_tts/model/modules.py:160-164 | GPT_SoVITS/f5_tts/model/modules.py:181-185 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/f5_tts/model/modules.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73a823144bfed2dbb293a54fb5ff802548cd2d823061f18df6b64dddb3a7834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): GPT_SoVITS/inference_webui.py:831-840 | api.py:355-364 \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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"151764524a34bc1c4a02a6fe82ac7abb9b1f152a070d16ec5e9393c4218067be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): api.py:749-782 | api_v2.py:323-349 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28c169e5316d06ba927e52852a22805d15ddd3b677cae80f9edc79de1089936"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/Accel/PyTorch/AR/export.py:59-62 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:188-190 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/export.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e969cb08a1333c51cd066f90fbbe734f0db9f57b01c9d8a414a8de66fd0bafc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): GPT_SoVITS/module/attentions.py:218-225 | GPT_SoVITS/module/attentions_onnx.py:184-192 \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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"5629e4ffdf7e45716d553d7022bcd800545173724b591ef42e5c1464db8337d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py:154-157 | GPT_SoVITS/inference_webui.py:1237-1240 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28de6aafc0d09e1eb9db73e7502ec1c931e419c4b06aa682e159c5fb56b7d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/AR/models/t2s_model.py:253-257 | GPT_SoVITS/export_torch_script.py:331-333 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6267787a97a7cfcf54abe2f754f359821c9abbc9a015d8ac54d5a497e44d97cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/text/chinese.py:77-80 | GPT_SoVITS/text/chinese2.py:74-77 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/chinese.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7600bd8b2b6097b38cc75a6185d3ea110a23a4a59b1f5d350a77cf883449d2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/module/attentions_onnx.py:21-23 | GPT_SoVITS/module/modules.py:30-32 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions_onnx.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d20fb6b4993a44e399682e3b1a196eee84bf41d554b933239d4827301862c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py:93-103 | GPT_SoVITS/Accel/MLX/AR/backends/mlx_varlen.py:93-99 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py:86-104 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0fe3687139b60add7f9c736f639a5d2043bad14119d4b3b41a6352f8fabeb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/AR/models/utils.py:10-13 | GPT_SoVITS/module/commons.py:118-121 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/utils.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6904d6f9bbd574691092e72f0be0d3fd6882ebe3a24291befdfe0f6ecacee13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py:24-29 | GPT_SoVITS/Accel/PyTorch/AR/export.py:73-76 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed38cd62db6393a8a80bc681dee39a1f20df6ccef1ca0a0fe9236683a5627eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py:236-239 | GPT_SoVITS/text/chinese.py:70-73 | GPT_SoVITS/text/chinese2.py:317-320 | GPT_SoVITS/text/english.py:125-128 | GPT_SoVITS/text/japanese.py:139-142 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb25a23a07fa2751a4afc2bd472810a36a9855d0af586fa7dcdaeb49df7be74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/AR/modules/embedding.py:75-78 | GPT_SoVITS/AR/modules/embedding_onnx.py:60-63 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/embedding.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f7c66b91927d8fed910aead03d8382caff6396a8708259e91cca773edc4539"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py:106-108 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:128-130 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f1dddf5271e8de124e46e25f026833c6594a73bcdf6da42da6bbb351a69970"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/module/models.py:716-718 | GPT_SoVITS/module/models_onnx.py:652-654 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"5029cbbbca9caaf3f4df4ea33160b933cbeeffdf17b656798d4e048843031c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py:29-31 | GPT_SoVITS/inference_webui.py:690-692 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6932cc2e2a259f571b10245f4fbaa149170e425610ad9b23ef1ac5c2e9a2b304"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/AR/models/t2s_model.py:82-84 | GPT_SoVITS/export_torch_script.py:198-200 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b363739b30159ca6cbdcc8b6e71e31e88c1507db5700cb1ae5ab741d75fa7718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:132-138 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:114-124 \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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a4acf9644ab2af08d10f44b323a463af3d05d3453a8f69bb786785f12f9a0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:212-215 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:262-265 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4bfe3b2afda785045cd5f94866cf8fc8864173b1c5f44f2222996a5027834f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:235-245 | GPT_SoVITS/Accel/PyTorch/AR/export.py:153-164 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:296-307 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe00d4241a5dcd69c4bfd198dd3380e203da50dd87a309c654a8a911e966880"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py:207-210 | GPT_SoVITS/inference_webui.py:650-653 | api.py:525-528 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a501c1b3896287a8ce069f38178a684b7366497a22f3d4ba6870b69f648bb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): GPT_SoVITS/text/en_normalization/expend.py:267-277 | GPT_SoVITS/text/zh_normalization/num.py:62-73 \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":"GPT_SoVITS/text/en_normalization/expend.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ccc9a80a4de2fac38053802bfffadbcb452d127c7c8bec84b48e91b8a32816"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 4\u002B corresponding lines): GPT_SoVITS/TTS_infer_pack/TTS.py:211-214 | GPT_SoVITS/export_torch_script.py:177-180 | GPT_SoVITS/export_torch_script_v3v4.py:568-571 | GPT_SoVITS/inference_webui.py:209-212 | GPT_SoVITS/onnx_export.py:58-61 | api.py:630-633 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e777f269e3ca37cfadbfe3e0350ccdedb019c53a1ab2f8f6dbff9f57728ad35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): GPT_SoVITS/AR/modules/transformer.py:316-325 | GPT_SoVITS/AR/modules/transformer_onnx.py:236-245 \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":"GPT_SoVITS/AR/modules/transformer.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"033f869cc641a031dc785600ad46b705c8a97e1079e1bb39736000aaff106cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:142-145 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:210-213 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60d246caf28ab39e2b83233a7cb6ee00f13f9f66e67e3e22b384d57919d29b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/Accel/PyTorch/AR/export.py:66-68 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:149-154 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/export.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f20b11bf3091c8a44eda5ec32c6554d648efddf1114d41611b80c1579a5ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): GPT_SoVITS/AR/models/t2s_model_onnx.py:77-78 | GPT_SoVITS/AR/models/utils.py:143-144 | GPT_SoVITS/export_torch_script.py:109-110 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model_onnx.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d863c2bbb312bea898c68c5ed07a8e3712cfbf90263b44515a6f59997238e2ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py:111-113 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:133-135 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2a73df93e8bc2c30702e2b9979ced7576ae688874cdac998ed00c0a7085873"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:298-307 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:355-357 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69a1959140741e60abfd591c1139ecdb9f42688c533a6da4b6798ba0a7a9017"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): GPT_SoVITS/inference_webui.py:1270-1273 | GPT_SoVITS/inference_webui_fast.py:235-238 | config.py:94-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"130e4c413ffc06c4df0784307a115c8341414508eb3c29c4ffa315feae6571d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/module/models.py:268-270 | GPT_SoVITS/module/models_onnx.py:909-911 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"91eed128a6f49fb5cbda31d1e035a3715f489bf23de9cd6edd5896b7a42d0084"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/module/models.py:1098-1100 | GPT_SoVITS/module/models_onnx.py:1085-1087 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb92660f6d1c015f629768f5e5b481e78a1b702ef4df09c55ee9694c8f18841"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/AR/modules/transformer.py:119-122 | GPT_SoVITS/AR/modules/transformer_onnx.py:119-122 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/transformer.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ad5fbf874456194edfa599931646ecb92d15d318e0afce643f57dbf132a143"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): GPT_SoVITS/AR/modules/transformer.py:329-330 | GPT_SoVITS/AR/modules/transformer_onnx.py:248-249 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/transformer.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f46cd1cc3716ce20761ceaf640f7ea4c30c25aa834b05027cefa9fae28d44c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:153-156 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:152-155 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdce39f56d250079100e8bafa30c913c273147521eac8fc0b305a29d21c4d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): GPT_SoVITS/module/commons.py:7-9 | tools/AP_BWE_main/models/model.py:13-15 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/commons.py"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50664ed3631e4c96e367e7e5c6c55e28b1ba6bc7e8a59d67dc337f41b2bce98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69\u201386 lines \u00D7 2): GPT_SoVITS/s2_train_v3.py:297-382 | GPT_SoVITS/s2_train_v3_lora.py:271-339 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train_v3.py\u0060 and \u0060GPT_SoVITS/s2_train_v3_lora.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 268 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/s2_train_v3.py:297\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"GPT_SoVITS/s2_train_v3.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60561bcf910b4800052d4d7bfbddd7a1b0864c7f2f94caf858d3c43d320eb8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): GPT_SoVITS/text/chinese.py:110-168 | GPT_SoVITS/text/chinese2.py:244-302 \u2014 before extracting anything, compare \u0060GPT_SoVITS/text/chinese.py\u0060 and \u0060GPT_SoVITS/text/chinese2.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/text/chinese.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39143ea9a757d6299eb9daf8a9e8174d498d0306eb0423750063cd845e385a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201354 lines \u00D7 2): GPT_SoVITS/AR/modules/transformer.py:197-250 | GPT_SoVITS/AR/modules/transformer_onnx.py:169-205 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/modules/transformer.py\u0060 and \u0060GPT_SoVITS/AR/modules/transformer_onnx.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060MultiheadAttention\u0060 names \u0060AR.modules.activation\u0060 in one and \u0060AR.modules.activation_onnx\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":"GPT_SoVITS/AR/modules/transformer.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"520de64ad2c4d81a2f2fdb1fd08adf2d900a300fdc9d158d73e98f724afd4b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201349 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:356-404 | GPT_SoVITS/AR/models/t2s_model.py:455-500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e4da07513d70829a5ca9ab33319da2a9aa8a8e764df2ad9756330e226499ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 3): GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py:124-169 | GPT_SoVITS/inference_webui.py:699-744 | api.py:548-593 \u2014 before extracting anything, compare \u0060GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py\u0060 and \u0060GPT_SoVITS/inference_webui.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7146f703e79305b30c58e55df1d5c4c8cb5d33428a5e7e2947e4898169d1603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:256-294 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:257-295 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:297\u0060 calls \u0060inference_mode\u0060 and \u0060GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:296\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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9999add67f4d8c2c76ceb3a84f9d5fd7e5e3a34d475a151d8cca8623f32a1af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): GPT_SoVITS/inference_webui.py:246-283 | GPT_SoVITS/inference_webui_fast.py:268-304 \u2014 before extracting anything, compare \u0060GPT_SoVITS/inference_webui.py\u0060 and \u0060GPT_SoVITS/inference_webui_fast.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/inference_webui.py:246\u0060 it does not close everything it opens, so those exact 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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f70689f8df0bb478394fb479884a2731885c5c06e5339adabf1beb6d483d9df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): GPT_SoVITS/AR/modules/activation.py:142-178 | GPT_SoVITS/AR/modules/activation_onnx.py:94-128 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/modules/activation.py\u0060 and \u0060GPT_SoVITS/AR/modules/activation_onnx.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/AR/modules/activation.py:142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56a9bf88947022f2519423923c8db9fc44c367ca3d6da2ea288f7931d39a340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201337 lines \u00D7 2): GPT_SoVITS/s2_train_v3.py:225-261 | GPT_SoVITS/s2_train_v3_lora.py:230-247 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train_v3.py\u0060 and \u0060GPT_SoVITS/s2_train_v3_lora.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 268 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/s2_train_v3.py:225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train_v3.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"5440699319fb757216b74ec792080fea4718da11b167aa1be907950a8aae732e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_lightning_module.py:47-81 | GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py:45-79 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/models/t2s_lightning_module.py\u0060 and \u0060GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/AR/models/t2s_lightning_module.py:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_lightning_module.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa162a1298932d52330c3a228b850622f9e7542ee817de03f5c7e942974af34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63\u201371 lines \u00D7 2): GPT_SoVITS/s2_train.py:518-580 | GPT_SoVITS/s2_train_v3.py:397-467 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/s2_train.py:518\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5c0decfc026e610147c442393275efdfce39319b3c7286e2373c22aae1d276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:326-359 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:372-405 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:326\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf87b57febb1208bcf93849fd3d9f943becc4b22724bc135d00209b6ba7176f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): GPT_SoVITS/export_torch_script_v3v4.py:403-435 | GPT_SoVITS/export_torch_script_v3v4.py:463-495 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b88914a68bc6bfdec699fdaa7d4e0cab53d436eb5a1054add4bd701d1553bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): GPT_SoVITS/module/models.py:868-900 | GPT_SoVITS/module/models_onnx.py:807-839 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d9e9b6221e2d21299e31b8e83390c037728825d9e2e25dd35c9002c7eba2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201333 lines \u00D7 2): GPT_SoVITS/s2_train_v3.py:384-416 | GPT_SoVITS/s2_train_v3_lora.py:341-356 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train_v3.py\u0060 and \u0060GPT_SoVITS/s2_train_v3_lora.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 268 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/s2_train_v3.py:384\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train_v3.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7faf4c9427b1d2ba54fd85767a2070f154823fc2a2b0f3362658e140a18fea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): GPT_SoVITS/module/data_utils.py:397-427 | GPT_SoVITS/module/data_utils.py:846-874 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \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 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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84e38ea52a6b6be7ce84ea10255d96642acacb4e5b53d7b5cce6bcef210676f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): GPT_SoVITS/module/models.py:170-200 | GPT_SoVITS/module/models_onnx.py:162-192 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa605c190fbaeb911bd1125eed4f06e4d64233120bc575acd2b7554806c2fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): GPT_SoVITS/module/models.py:1277-1307 | GPT_SoVITS/module/models_onnx.py:1017-1047 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ad87d95ac5868b21c68a8d0ab27473183e9d609a83417424546b5b8eb9c43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): GPT_SoVITS/s2_train.py:133-163 | GPT_SoVITS/s2_train_v3.py:133-163 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de991c137ad1582e71a51dac68592069f2044d24cc6f157a9139dc6bc9c4787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 4): GPT_SoVITS/module/data_utils.py:52-107 | GPT_SoVITS/module/data_utils.py:306-361 | GPT_SoVITS/module/data_utils.py:544-599 | GPT_SoVITS/module/data_utils.py:755-810 \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 \u0060GPT_SoVITS/module/data_utils.py:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/module/data_utils.py:50\u0060 calls \u0060list\u0060, \u0060set\u0060 and \u0060GPT_SoVITS/module/data_utils.py:304\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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d4bdb08c60e8a2d0c1d9d67e7ebeb822ad1d8651f42a6d58d6fc14dc4db866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): GPT_SoVITS/s2_train.py:292-321 | GPT_SoVITS/s2_train_v3.py:251-280 | GPT_SoVITS/s2_train_v3_lora.py:237-266 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060GPT_SoVITS/s2_train.py:322\u0060 calls \u0060step\u0060 and \u0060GPT_SoVITS/s2_train_v3_lora.py:267\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":"GPT_SoVITS/s2_train.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"433dd82cd3c810aa6f13a06d92878f908df1d4d5b6bbedfcac7628af6a4517d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:218-246 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:215-243 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e5fd66680d77842c265aa2b18107beedefaf44d348c48d053dc17cf21bb815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): GPT_SoVITS/export_torch_script_v3v4.py:963-991 | GPT_SoVITS/export_torch_script_v3v4.py:1082-1110 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc3c120858d28c189391a3dae6f69d4d95b836a4561a2132f0a43c9ae38e74a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): GPT_SoVITS/s2_train.py:229-256 | GPT_SoVITS/s2_train_v3.py:198-225 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e4a32d2f27829899b28d9e687840efe27ae10b459067c7088c484d83b1a618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): GPT_SoVITS/inference_webui.py:620-646 | api.py:643-669 \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 \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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df8acf9f64147537dc18ef47a7ff0cdd0c4442bc92cdffeca1ad3d0da0053ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): GPT_SoVITS/module/models.py:662-688 | GPT_SoVITS/module/models_onnx.py:598-624 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bec6c59809ea7b0ae7751cc6079cae466b6e0a5b6f4d499df29619630adb8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_lightning_module.py:121-146 | GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py:85-110 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/models/t2s_lightning_module.py\u0060 and \u0060GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_lightning_module.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5f45355853e33b47aef1a875b719ffaf3a1a25a59c99ea799e81407523b01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): GPT_SoVITS/module/attentions.py:32-57 | GPT_SoVITS/module/attentions_onnx.py:72-97 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/attentions.py\u0060 and \u0060GPT_SoVITS/module/attentions_onnx.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7de2317189278822b6d66dd88d0bf587a6b7ae7cb5d62c6e5869796f92595b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): GPT_SoVITS/stream_v2pro.py:260-285 | GPT_SoVITS/stream_v2pro.py:459-484 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/stream_v2pro.py:260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060GPT_SoVITS/stream_v2pro.py:485\u0060 calls \u0060StepVitsModel\u0060 and \u0060GPT_SoVITS/stream_v2pro.py:289\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":"GPT_SoVITS/stream_v2pro.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0186b5bb7a96981b8988f83578bdea9cb5bbfa4d9941a3bae64032fae022b235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): webui.py:971-996 | webui.py:1181-1205 \u2014 both copies are in the same file, so extract the block 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":"webui.py"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"4531b641114fe4ef97f1dd8b80d1fdabbe22c49bed8991ee1e3a71b99fc73150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 6): webui.py:792-815 | webui.py:881-905 | webui.py:976-999 | webui.py:1076-1099 | webui.py:1123-1146 | webui.py:1186-1208 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060webui.py:792\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7154d2dccd39bcdf30244437dbeb362d671eca90a429ed1db0e81671c57fa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:298-322 | GPT_SoVITS/AR/models/t2s_model_onnx.py:268-288 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/AR/models/t2s_model.py:298\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b2435762f6f2f8b2e683bd7bd7e0991273316b9c42c95be36e3cbafb603593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): GPT_SoVITS/module/attentions.py:182-215 | GPT_SoVITS/module/attentions_onnx.py:148-181 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/attentions.py\u0060 and \u0060GPT_SoVITS/module/attentions_onnx.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf924d6edd9e9e4af790d42bb33d5f9ca59ed9f715a517372ed07cc17c691b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201324 lines \u00D7 3): GPT_SoVITS/s2_train.py:516-529 | GPT_SoVITS/s2_train_v3.py:395-418 | GPT_SoVITS/s2_train_v3_lora.py:344-357 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/s2_train.py:516\u0060 it does not close everything it opens, so those exact 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":"GPT_SoVITS/s2_train.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4ac1e0b2f333dabcdb4df9ebec5047fbbd6a936ac537df10cd5283268a90d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): GPT_SoVITS/AR/modules/activation.py:94-115 | GPT_SoVITS/AR/modules/activation_onnx.py:35-58 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/modules/activation.py\u0060 and \u0060GPT_SoVITS/AR/modules/activation_onnx.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/AR/modules/activation.py:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"497b61d967e8ed726fcacf101cc347f29528bf6fbe4ce12f1f6531bb4f20187e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): GPT_SoVITS/module/models.py:454-484 | GPT_SoVITS/module/models_onnx.py:396-426 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1026d4d1aa06be12878150e5e500cd028d9d77b96fe977438456ad5e428db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): webui.py:907-930 | webui.py:1148-1171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060webui.py:907\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a48c415d0dc097b29a305427307f447af1d65adf57eb3f7710d1647870a5f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): GPT_SoVITS/export_torch_script_v3v4.py:258-280 | GPT_SoVITS/export_torch_script_v3v4.py:338-360 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2034a88235843127015a4e270ab90fd38a0a566405fffaaf38644eb1b9cce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): GPT_SoVITS/module/models.py:298-320 | GPT_SoVITS/module/models_onnx.py:240-262 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a168e8075b010ef0d56e6e33118754177e6d3eabb25be7f41ddcbbcee0e774e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 4): GPT_SoVITS/module/data_utils.py:233-250 | GPT_SoVITS/module/data_utils.py:490-511 | GPT_SoVITS/module/data_utils.py:701-722 | GPT_SoVITS/module/data_utils.py:938-959 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/module/data_utils.py:231\u0060 calls \u0060FloatTensor\u0060 and \u0060GPT_SoVITS/module/data_utils.py:487\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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d593e02939087e61fa2a731d8490d757bc248b9775960d38df8ef1e8c669208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): GPT_SoVITS/export_torch_script.py:637-657 | GPT_SoVITS/export_torch_script.py:723-744 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"e975c2666f406a538197e7339aa4af93e6b0e73e64a0fcfbc057fc08c4730656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:333-353 | GPT_SoVITS/export_torch_script.py:416-434 \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 \u0060GPT_SoVITS/AR/models/t2s_model.py:333\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ce17084db653483b918b9cee37f474a7c4461f96dc7e2762d6044e0db9f681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:301-321 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:313-333 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"76da534e10e8badcb3c9aeeab0e9ffb5f66e72aa90a1b864ea653575d429bcba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py:164-184 | GPT_SoVITS/inference_webui.py:1245-1265 \u2014 before extracting anything, compare \u0060GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py\u0060 and \u0060GPT_SoVITS/inference_webui.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py:162\u0060 calls \u0060register_method\u0060 and \u0060GPT_SoVITS/inference_webui.py:1240\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":"GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac827820f9a42d6c07524ebc2281ebd6ec03f13c4cfe47177269c95798d0cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): GPT_SoVITS/export_torch_script_v3v4.py:225-246 | GPT_SoVITS/export_torch_script_v3v4.py:305-326 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"febf0f671e08e378330022cf86d245618009ba3d2c9819c79647f581e572c798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py:118-139 | GPT_SoVITS/inference_webui.py:1205-1226 \u2014 before extracting anything, compare \u0060GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py\u0060 and \u0060GPT_SoVITS/inference_webui.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3040d31b03ff1de598abe7d4c278b612f4efee606ef13cee6f37c429d5ff8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): GPT_SoVITS/export_torch_script.py:139-158 | GPT_SoVITS/onnx_export.py:20-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \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":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7c79ce5b74c8135e8102b90507a2c203605c00a7d2478506fa90fb290a8c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201320 lines \u00D7 2): GPT_SoVITS/module/models.py:908-918 | GPT_SoVITS/module/models_onnx.py:838-857 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/module/models.py:908\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c3ea8caf67ddad91879715e053c0182371353b1a34f076ca43fdcfeb3281ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): GPT_SoVITS/s2_train.py:54-72 | GPT_SoVITS/s2_train_v3.py:54-72 | GPT_SoVITS/s2_train_v3_lora.py:55-73 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb34bfab1ca7dac0a74b1f6d7dcd7d22505a82040e81adc95368722acad3c7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): GPT_SoVITS/module/attentions.py:641-659 | GPT_SoVITS/module/modules.py:435-453 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"324aefc13fcc1080f58dfbc89cfe5a08facc274b94a438242bec19677fe60599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): GPT_SoVITS/module/mel_processing.py:53-73 | GPT_SoVITS/module/mel_processing.py:118-138 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/mel_processing.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a7e355450b9977474a354ce8207a89eee49ea71695583ca3953a70e6ef654f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): GPT_SoVITS/module/models.py:39-68 | GPT_SoVITS/module/models_onnx.py:33-62 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0e5ee033455c32c413a36f9449fb3373f0f9d9fae6c34f4ac664c252d6e0ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): GPT_SoVITS/module/models.py:487-505 | GPT_SoVITS/module/models_onnx.py:429-447 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"7897737be56a6ad12b1834f60084ce484f975115169e2ff62654b379426e2b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): GPT_SoVITS/module/models.py:997-1026 | GPT_SoVITS/module/models.py:1045-1074 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"021272020537720e1bf7ec4dcc9dd08c5210fccb6c09ea87f96b502b4155e0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): GPT_SoVITS/module/models.py:860-877 | GPT_SoVITS/module/models.py:1269-1286 | GPT_SoVITS/module/models.py:1419-1436 | GPT_SoVITS/module/models_onnx.py:799-816 | GPT_SoVITS/module/models_onnx.py:1009-1026 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5cf4ce112fd93420bc163054399a1d3526c3446d517812396e3fd07536d0572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/TTS.py:1789-1809 | GPT_SoVITS/TTS_infer_pack/TTS.py:1878-1898 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39fa136ed6c2bdc3d7dc9662d884e8186720c3a6524c639a8e2e0934eb4c435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): GPT_SoVITS/stream_v2pro.py:289-306 | GPT_SoVITS/stream_v2pro.py:489-506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/stream_v2pro.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"9753fcab5188ec88f981b85d7a0e8e96f38011eaae801ebe83a606dee04166f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): GPT_SoVITS/AR/modules/activation.py:364-380 | GPT_SoVITS/AR/modules/activation.py:390-406 | GPT_SoVITS/AR/modules/activation_onnx.py:168-184 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/modules/activation.py\u0060 and \u0060GPT_SoVITS/AR/modules/activation_onnx.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d2087ed0df9e919b543227faf92c722fc3ea68d930754ab7a6e589c5f49089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): GPT_SoVITS/AR/modules/patched_mha_with_cache.py:266-282 | GPT_SoVITS/AR/modules/patched_mha_with_cache_onnx.py:57-68 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/patched_mha_with_cache.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af30c27b56d807c5d5e9234f2f0407b6a1917c554c788efeb34bd07d39cd92b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): GPT_SoVITS/module/models.py:120-136 | GPT_SoVITS/module/models_onnx.py:114-130 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/module/models.py:120\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"225a52787dd815a735f42382ec2f4c8cfce531698b33383b5589085ada460769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): GPT_SoVITS/AR/modules/transformer.py:36-51 | GPT_SoVITS/AR/modules/transformer_onnx.py:36-51 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/modules/transformer.py\u0060 and \u0060GPT_SoVITS/AR/modules/transformer_onnx.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/transformer.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f782d277eeb17e866c0173b69ca9ed2381375cf6695df495f74fe5d5cc5612f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:233-248 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:309-324 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/runner_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/runner.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:233\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:249\u0060 calls \u0060array\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/runner.py:325\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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a2a72fcb8aef0f6bc6e2e47bf242232a74bf05f999af65c86290257abbc5c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py:71-86 | GPT_SoVITS/inference_webui.py:1171-1186 \u2014 before extracting anything, compare \u0060GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py\u0060 and \u0060GPT_SoVITS/inference_webui.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebcdf49eda0d05cd8d3c2587ba8cc3169784051d76e1597e8f6221111526159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): GPT_SoVITS/inference_webui.py:276-291 | GPT_SoVITS/inference_webui.py:362-377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/inference_webui.py:276\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5afefcd4075fc764d8d05a549571d308ac95879efbe7e45f7de82d67f0bdb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): GPT_SoVITS/inference_webui.py:747-762 | api.py:594-609 \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 \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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"24235ddc2893ddc97b76e37c71085cf54264c8208275a67d9af2f5a564c24bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): GPT_SoVITS/module/attentions.py:419-434 | GPT_SoVITS/module/attentions.py:470-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/module/attentions.py: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e12bb3b377f46d350e7a2a20ad01901ddf18496a343883f8f9d178b023ba5a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): GPT_SoVITS/module/models.py:71-115 | GPT_SoVITS/module/models_onnx.py:65-109 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"da830ac775a950778cde747b1147159c837e088e035a0022adfde9eaf04fa9d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): GPT_SoVITS/module/models.py:691-706 | GPT_SoVITS/module/models_onnx.py:627-642 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a1b687ff9c25bad012300a2d9e56b0793488909de5deb22599734ea46221e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): GPT_SoVITS/module/models.py:785-800 | GPT_SoVITS/module/models_onnx.py:721-736 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"2701ccec0fe400d41837829a47da09ab9b99d77f80bc88fdf484768e75bb00da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): api.py:712-727 | api_v2.py:293-308 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \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":"api.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a47bebbf95fcdc8d55b8117f4181eb2e8b452697c5cc9c2b360e9a991f47ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 6): GPT_SoVITS/module/models.py:343-357 | GPT_SoVITS/module/models.py:378-387 | GPT_SoVITS/module/models.py:412-426 | GPT_SoVITS/module/models_onnx.py:285-299 | GPT_SoVITS/module/models_onnx.py:320-329 | GPT_SoVITS/module/models_onnx.py:354-368 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/module/models.py:343\u0060 it does not close everything it opens, so those exact 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"060f45c80bc81f5e6aa665f1a7ce459b59f40f5792989a427ca47f7bebd66cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 4): GPT_SoVITS/export_torch_script_v3v4.py:736-750 | GPT_SoVITS/export_torch_script_v3v4.py:947-961 | GPT_SoVITS/export_torch_script_v3v4.py:1065-1079 | api.py:913-924 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/export_torch_script_v3v4.py:736\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe49d368aa7ce412fa5c4443c32fd27e7b09019913a89c064943e8e17476ab98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): GPT_SoVITS/AR/models/t2s_model.py:867-881 | GPT_SoVITS/export_torch_script.py:480-494 | GPT_SoVITS/stream_v2pro.py:52-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/AR/models/t2s_model.py:867\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"596de67ea172e19d43e213db5983693208b3cf01fd18b9d45e2033d74588612d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:105-119 | GPT_SoVITS/export_torch_script.py:221-235 \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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f0857fb32c979e30e1102a2d4ecac4c6b8521d41d937a6d671eca79399ba41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201315 lines \u00D7 3): GPT_SoVITS/AR/models/t2s_model_onnx.py:35-49 | GPT_SoVITS/AR/models/utils.py:159-170 | GPT_SoVITS/export_torch_script.py:85-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/AR/models/t2s_model_onnx.py:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/AR/models/t2s_model_onnx.py:34\u0060 calls \u0060squeeze\u0060 and \u0060GPT_SoVITS/AR/models/utils.py:154\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":"GPT_SoVITS/AR/models/t2s_model_onnx.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f5514ef68b37fc874d2c73b146b8de048a7858a8ff622dc86b498475f7bda5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): GPT_SoVITS/AR/modules/activation.py:181-195 | GPT_SoVITS/AR/modules/activation_onnx.py:131-145 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/modules/activation.py\u0060 and \u0060GPT_SoVITS/AR/modules/activation_onnx.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6369b76e44862aa4a20f52250a760c7a8ee72bef7fa06f523a4916736ceb8906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): GPT_SoVITS/AR/modules/transformer.py:59-73 | GPT_SoVITS/AR/modules/transformer_onnx.py:59-73 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/modules/transformer.py\u0060 and \u0060GPT_SoVITS/AR/modules/transformer_onnx.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/transformer.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f33eb44670d131ddaf48c1a2d4d542f74db142eb20a5ae011d41c914f880bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): GPT_SoVITS/AR/modules/transformer.py:344-358 | GPT_SoVITS/AR/modules/transformer_onnx.py:263-277 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/modules/transformer.py\u0060 and \u0060GPT_SoVITS/AR/modules/transformer_onnx.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/transformer.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"873b0d33301542f34f13f9a100d931fa23a9c1a2eea41a6dae0c88702bf6c353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:115-129 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:97-111 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"688e689ffc171f51b01ca3f63c2a33b1e585189fea91ab8ac87a00eed3c587d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py:35-49 | GPT_SoVITS/inference_webui.py:810-824 \u2014 before extracting anything, compare \u0060GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py\u0060 and \u0060GPT_SoVITS/inference_webui.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cebbe4cf590ccb00d8d52d56168bfed67532fe13742f309a43433a63318416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/TTS.py:61-114 | GPT_SoVITS/inference_webui.py:548-601 \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 \u0060GPT_SoVITS/TTS_infer_pack/TTS.py: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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d811306a0b2f11dc9a599346ba75664d0dd91a2ded3497a02adc64da6892ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): GPT_SoVITS/export_torch_script_v3v4.py:286-300 | GPT_SoVITS/export_torch_script_v3v4.py:366-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \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":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"00505b54fcea07c093ee81ed5060eb6a9a19c764298c1b25369bf3f047a83a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): GPT_SoVITS/module/models.py:139-152 | GPT_SoVITS/module/models_onnx.py:133-146 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc7ba1134504552f330b3d037ce66009614fda2417605a4d5676fd819435865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): GPT_SoVITS/module/models.py:640-652 | GPT_SoVITS/module/models_onnx.py:576-588 | tools/AP_BWE_main/models/model.py:200-212 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd63f7e653f6c2c34ad1f64eebc3431f3e20d47a2a6e0d76806cc794a15af62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): GPT_SoVITS/s2_train.py:76-88 | GPT_SoVITS/s2_train_v3.py:76-88 | GPT_SoVITS/s2_train_v3_lora.py:77-89 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6d660e3ac9ad891205e31ce913c86dfdf8829f9add4f1d483ea5a6a99a9396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:105-117 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:169-181 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/runner_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/runner.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"40125bcf04ed0f101ab08f94620dccc88cfb1352b949d6329421210d25674889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): GPT_SoVITS/export_torch_script.py:740-751 | GPT_SoVITS/stream_v2pro.py:256-268 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/export_torch_script.py:740\u0060 it does not close everything it opens, so those exact 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":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"b257d3d90c09dcd44c7a9cbf1e9124024a8ca03939eebea76756da31d44de118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): GPT_SoVITS/export_torch_script.py:768-780 | GPT_SoVITS/stream_v2pro.py:284-296 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"39648a0d11dcdc2caaf57c828f4d4606d3326ba1bb7ebb5dbfeeaff3155179ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): GPT_SoVITS/export_torch_script_v3v4.py:593-602 | GPT_SoVITS/inference_webui.py:294-305 | api.py:399-408 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/inference_webui.py:294\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"697ca77a9a2ce9b59add058d68fd311dd1361c295c0b8a94e8cb740d03ae62c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 3): GPT_SoVITS/module/data_utils.py:403-414 | GPT_SoVITS/module/data_utils.py:636-642 | GPT_SoVITS/module/data_utils.py:852-863 \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 \u0060GPT_SoVITS/module/data_utils.py:403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e455fea9651fb318d2f80b22e6dd83a8ffcf69bbc42577c2ec71d7dc4f12fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_lightning_module.py:20-31 | GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py:20-31 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/models/t2s_lightning_module.py\u0060 and \u0060GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/AR/models/t2s_lightning_module.py:20\u0060 it does not close everything it opens, so those exact 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: \u0060Text2SemanticDecoder\u0060 names \u0060AR.models.t2s_model\u0060 in one and \u0060AR.models.t2s_model_onnx\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":"GPT_SoVITS/AR/models/t2s_lightning_module.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead53d18c048bb0e48e736e6d4959137965db8894ce45e025223ab864026eaad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): GPT_SoVITS/AR/models/utils.py:178-189 | GPT_SoVITS/export_torch_script.py:93-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/AR/models/utils.py:178\u0060 it begins part-way through the construct above it, so those exact 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":"GPT_SoVITS/AR/models/utils.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9135b9fa0887c21368313f88a28e2b2e31197889f218576c45f883360caff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/TTS.py:1817-1828 | GPT_SoVITS/TTS_infer_pack/TTS.py:1899-1910 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab086b3ae8f713d333ac925a56b4b0b0470fceadb9e58d8d4be05e16c323048d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py:101-112 | GPT_SoVITS/inference_webui.py:1190-1201 \u2014 before extracting anything, compare \u0060GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py\u0060 and \u0060GPT_SoVITS/inference_webui.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py:116\u0060 calls \u0060register_method\u0060 and \u0060GPT_SoVITS/inference_webui.py:1204\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":"GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fbcadcd76cc78250b0a275cccdada8caf3f097f4df52b8c4b9512445bedf93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): GPT_SoVITS/utils.py:121-131 | GPT_SoVITS/utils.py:146-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/utils.py:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"GPT_SoVITS/utils.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf885b6243fbf2a8d51307fc9e41869a6dc2764e5c25d54ebb5eef591a8a69cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): webui.py:817-827 | webui.py:1101-1112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060webui.py:817\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"f402889739291f31a2d0e56e88953d9b3f44997ca29d0c0201632babe7abd4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): GPT_SoVITS/AR/models/t2s_model.py:164-174 | GPT_SoVITS/export_torch_script.py:269-279 | GPT_SoVITS/export_torch_script.py:302-312 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The \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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4a443b370c34a88fc6b6c7d22a30286df34cbebdc1b6ba587ba83d7a18ef0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): GPT_SoVITS/export_torch_script.py:753-763 | GPT_SoVITS/stream_v2pro.py:269-279 | GPT_SoVITS/stream_v2pro.py:468-478 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/export_torch_script.py:753\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6a1046114a5c21da01e74108b250ac8bcc08bc4dabebface3340da94951027"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:300-310 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:378-388 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/runner_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/runner.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56ce3897ea4831c2a5c1d32978c84276761e4ac7d252f11e42b357ec178ce5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): GPT_SoVITS/Accel/MLX/G2PW/model.py:20-30 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:21-30 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/G2PW/model.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/G2PW/model.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b692a29a9464811f0b91f4c5489a12018a4c7fa509d8c898dfcd11f235b616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): GPT_SoVITS/Accel/MLX/G2PW/model.py:138-150 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:141-153 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/G2PW/model.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/G2PW/model.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2bd2d14fa8a0b88b98d85c518a1fa705358a537a128c4e83746cce6b96fc49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): GPT_SoVITS/Accel/logger.py:115-125 | GPT_SoVITS/Accel/logger.py:179-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/logger.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c161b2623d47eccc335a1236916482fee5c6775701508945effb9abdf6fda60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): GPT_SoVITS/module/data_utils.py:384-394 | GPT_SoVITS/module/data_utils.py:622-632 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0c60de5cb91709d695f9efc14d495e7ebb9f59f9fb73b5a857aefe09c41471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): GPT_SoVITS/module/models.py:579-589 | GPT_SoVITS/module/models_onnx.py:521-531 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/module/models.py:579\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"037ab1b4183ac20e6002eadd88cecc458193658a6f70f947f68948a88bcb175e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): GPT_SoVITS/module/models.py:743-758 | GPT_SoVITS/module/models_onnx.py:679-694 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/module/models.py:743\u0060 it does not close everything it opens, so those exact 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"953dbcb49a9be771fd959f6da2853ee0f52ff520f73d26314a50a66dc89d301b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): GPT_SoVITS/s2_train.py:92-102 | GPT_SoVITS/s2_train_v3.py:92-102 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce252c2f16c39ec44a14adde29b31a4488d395aa573125f14dcd2bd582fff7f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): webui.py:550-560 | webui.py:642-652 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060webui.py:550\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bdb303f519f055231ce1398b635dda738102c694da47d09c95449a3dd5de1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): GPT_SoVITS/AR/models/t2s_model.py:539-548 | GPT_SoVITS/AR/models/t2s_model.py:869-878 | GPT_SoVITS/export_torch_script.py:482-491 | GPT_SoVITS/stream_v2pro.py:54-63 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5c1c5f39baaadca384bf8ef466db302d6654452c49178ddcf227ae128a00c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): GPT_SoVITS/TTS_infer_pack/TTS.py:736-745 | GPT_SoVITS/export_torch_script_v3v4.py:522-531 | GPT_SoVITS/inference_webui.py:486-495 | api.py:265-274 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/TTS_infer_pack/TTS.py:736\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"2414ea858a1e4513e6ba6a033d4a977dd3336cfd9f647d36b48429b17bb2b90e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): GPT_SoVITS/module/models.py:918-926 | GPT_SoVITS/module/models.py:1302-1310 | GPT_SoVITS/module/models.py:1460-1468 | GPT_SoVITS/module/models_onnx.py:1042-1051 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d155d5c59cfd6a55d74d4600bd279bc2f651c4632ec279624d1ac29e29aa7dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): GPT_SoVITS/s2_train.py:93-102 | GPT_SoVITS/s2_train_v3.py:93-102 | GPT_SoVITS/s2_train_v3_lora.py:94-103 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1c477d2c8a099107c02dc0924c45b256c763d12e6396d312b2d8d481e64810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): GPT_SoVITS/s2_train.py:452-461 | GPT_SoVITS/s2_train_v3.py:368-377 | GPT_SoVITS/s2_train_v3_lora.py:329-338 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27c1d844c7755d51648879510d4abc93f888112c243c983e8ff7c16e324f669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:416-423 | GPT_SoVITS/AR/models/t2s_model.py:426-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"56343dd05e2c81f7749a38cf33636a98e7b7ed11f692c62072a3708c9077ac26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model_onnx.py:56-65 | GPT_SoVITS/AR/models/utils.py:174-183 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model_onnx.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a686c912fae04bd78d44a838a98310ea44f6533065bdd8202e1a4cc68c23dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): GPT_SoVITS/Accel/PyTorch/AR/runner.py:38-47 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:44-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/runner.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7859d43620bc88d7bc8f1ece9a5ab6409c2a05b42790a771facefb4cf012ffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): GPT_SoVITS/inference_webui.py:660-669 | api.py:532-541 \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 \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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"251d12e1a97b9c4de047ed6a2b900dd7fee12d72aebd50bf82c53e3804ac99fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): GPT_SoVITS/inference_webui_fast.py:298-307 | GPT_SoVITS/inference_webui_fast.py:313-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/inference_webui_fast.py:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui_fast.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6a4ea17379f863ef8616510a29df15ca7b634bbc7dfcfa3bcfce8cfe87ea98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): GPT_SoVITS/module/attentions.py:249-256 | GPT_SoVITS/module/attentions_onnx.py:209-218 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/attentions.py\u0060 and \u0060GPT_SoVITS/module/attentions_onnx.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1dcd989f717a4b82348007e1d5b799156344f970b5315ab2a21c766584b901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): GPT_SoVITS/text/chinese.py:84-91 | GPT_SoVITS/text/chinese2.py:81-90 \u2014 before extracting anything, compare \u0060GPT_SoVITS/text/chinese.py\u0060 and \u0060GPT_SoVITS/text/chinese2.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/text/chinese.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77c8981337ca0ed29655a8f42be2d617e3d2beed123ae7c1a5a5c141627d9db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201319 lines \u00D7 4): GPT_SoVITS/module/data_utils.py:200-211 | GPT_SoVITS/module/data_utils.py:448-466 | GPT_SoVITS/module/data_utils.py:667-679 | GPT_SoVITS/module/data_utils.py:897-915 \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 \u0060GPT_SoVITS/module/data_utils.py:200\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060GPT_SoVITS/module/data_utils.py:213\u0060 calls \u0060max\u0060, \u0060size\u0060 and \u0060GPT_SoVITS/module/data_utils.py:683\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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6881833f91ccd1d51f26009b785bb31699a788b8e072e9e6645230097fc6f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): GPT_SoVITS/module/models.py:583-591 | GPT_SoVITS/module/models.py:613-621 | GPT_SoVITS/module/models_onnx.py:525-533 | GPT_SoVITS/module/models_onnx.py:555-563 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bd6ee2a35628acb36048743e6fe9ca36df9dc1e3fa5ec121d42f16824affb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): GPT_SoVITS/TTS_infer_pack/TTS.py:1842-1850 | GPT_SoVITS/inference_webui.py:1127-1133 | api.py:1057-1063 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/TTS_infer_pack/TTS.py:1842\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"e354e4338faa9a7be2ff74bc75ab69f8767eddf83cac2f9ccc6938e41aef21dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): GPT_SoVITS/eres2net/ERes2NetV2.py:220-228 | GPT_SoVITS/eres2net/ERes2NetV2.py:241-249 | GPT_SoVITS/export_torch_script.py:884-892 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbb119aa32df66c89c328a3e3c1f8e41471fb5e3176faeab0f895d97db5a164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:144-153 | GPT_SoVITS/export_torch_script.py:250-259 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060padding_mask\u0060 to \u0060Optional[torch.Tensor]\u0060 in one and \u0060Optional[torch.Tensor] = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8cb4595ea3eaf760a8cb2b27b2f76b10e1293acd83849d754e360ae77839d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/AR/modules/patched_mha_with_cache.py:320-328 | GPT_SoVITS/AR/modules/patched_mha_with_cache.py:329-337 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/AR/modules/patched_mha_with_cache.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c542f9ed1a9ae7d304933c440d49dafb73ffa0700ee732eb9b337aebf97a2f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:198-206 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:266-274 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/runner_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/runner.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5fc4c95d62cf167abee43f120b8fc3ba9c263bcfcd3300b5c6b71f3be32b76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:209-217 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:277-285 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/runner_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/runner.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dad818b67c19781a8e7086d4a2a80b4bcb11893e254960e07b58be78661c529"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): GPT_SoVITS/Accel/PyTorch/AR/export.py:329-339 | GPT_SoVITS/Accel/PyTorch/AR/export.py:377-387 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/Accel/PyTorch/AR/export.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"053568f4ff7265e143aa7140b5df8d7d83947c46ae270863f0a99d0832ac8638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/export_torch_script.py:48-56 | GPT_SoVITS/process_ckpt.py:139-147 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ae8adcbc5165365578ca0930dd23e34a71eb75dff7c2656cbf8a14c841668a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/inference_webui.py:404-412 | api.py:480-488 \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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfb9cdf20079d95a137f82cbbb8b16cc236d1d0dd32df3d3780c9289cc89a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): GPT_SoVITS/module/models.py:803-827 | GPT_SoVITS/module/models_onnx.py:739-763 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"64508cc504c91ec73d607ebcb80c4e617c9bd5b2714a6352c2d5e9faaeb2ccec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/text/tone_sandhi.py:680-688 | GPT_SoVITS/text/tone_sandhi.py:709-717 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/text/tone_sandhi.py:680\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/tone_sandhi.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fefd4ce20f4456c4e57b51ba4644a6afff60ec5c5c35dad40ef3bdad0442882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): GPT_SoVITS/AR/data/dataset.py:74-81 | GPT_SoVITS/module/data_utils.py:40-47 | GPT_SoVITS/module/data_utils.py:296-303 | GPT_SoVITS/module/data_utils.py:534-541 | GPT_SoVITS/module/data_utils.py:745-752 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/module/data_utils.py:39\u0060 calls \u0060set\u0060, \u0060list\u0060, \u0060listdir\u0060 and \u0060GPT_SoVITS/module/data_utils.py:295\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":"GPT_SoVITS/AR/data/dataset.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5de1b5ce21d6280e170737f5f7b1c3dc670eba2c14cb4f30d1e1a216ca2e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): GPT_SoVITS/module/models.py:919-926 | GPT_SoVITS/module/models.py:1303-1310 | GPT_SoVITS/module/models.py:1461-1468 | GPT_SoVITS/module/models_onnx.py:859-866 | GPT_SoVITS/module/models_onnx.py:1043-1050 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"8666b7e9715bd71a3d9a1abbbdb616e8569d0418dacd399b7853a83124694d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): GPT_SoVITS/module/models.py:937-944 | GPT_SoVITS/module/models.py:1002-1009 | GPT_SoVITS/module/models.py:1050-1057 | GPT_SoVITS/module/models_onnx.py:881-888 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"451e94e9d26cf3a2fe9425d0817cae9326e5313abe34f71a560efa9229afaf3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): GPT_SoVITS/TTS_infer_pack/TTS.py:1831-1838 | GPT_SoVITS/inference_webui.py:1116-1123 | api.py:1047-1054 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a88bd3a01a2a1f0ab3f8555c5e34c304cca411b7e77a233380b0df3225ff97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py:179-186 | GPT_SoVITS/inference_webui.py:754-761 | api.py:601-608 \u2014 before extracting anything, compare \u0060GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py\u0060 and \u0060GPT_SoVITS/inference_webui.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"18841e37c4de1e22cb52e8fdec918dc29e2bff2faf3c67aedd8be00228e29630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py:197-204 | GPT_SoVITS/inference_webui.py:183-190 | api.py:513-521 \u2014 before extracting anything, compare \u0060GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py\u0060 and \u0060GPT_SoVITS/inference_webui.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbe78adcad658e45e8829f6e3f4196201150afd1f0c7f59d45c3a74b8eda308"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): GPT_SoVITS/module/models.py:573-581 | GPT_SoVITS/module/models_onnx.py:515-523 | tools/AP_BWE_main/models/model.py:164-172 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/module/models.py:573\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d52b994698996e94292cdba0ed5c25236b146ca6d60592985c3fe483515b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:184-194 | GPT_SoVITS/export_torch_script.py:282-292 \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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4960487b5e36b41e80fa3016c719152c6dcc1fecbdb10c634de0af124bd270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:262-269 | GPT_SoVITS/AR/models/t2s_model_onnx.py:251-258 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcca86d5dccb5a34cc53ceaea8295ed427383383c53d52fb1ec0a8706a8a288b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:99-107 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:81-89 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cb0ac7cbfebab120398cee0339f2735601e917db24c85899df46d53a1de3f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:408-415 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:470-477 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"42985bf36a5b6611d7261f7fb2227d7a8f1c99827e1c69adf63a0dc26b410ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/export_torch_script.py:354-361 | GPT_SoVITS/onnx_export.py:202-209 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f958dc8d2b8f0d8beff37e9862266d491874d1129b79ae108294b03e51e8b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/export_torch_script.py:606-613 | GPT_SoVITS/export_torch_script.py:970-977 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a56ffa7302667c06f06cf0b6baa0382f86dfb6c8151a8e8a627bf3bdcd0cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/export_torch_script_v3v4.py:843-850 | api.py:1038-1045 \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":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"263bb6a7a177b93e57c01bdb4806ba376ad2027482b344d8bdea126bd82d9593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/module/attentions.py:77-84 | GPT_SoVITS/module/attentions.py:159-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ced10c33544ecac663404ce10b40a7231974669273f98ce6cb317e755a1d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/module/attentions.py:326-333 | GPT_SoVITS/module/attentions_onnx.py:289-296 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/attentions.py\u0060 and \u0060GPT_SoVITS/module/attentions_onnx.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c8aa50b27f0826664ac6b6ce4993b713c1d0c06134805dce41245a79f8a2f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/module/attentions.py:367-374 | GPT_SoVITS/module/attentions_onnx.py:331-338 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/attentions.py\u0060 and \u0060GPT_SoVITS/module/attentions_onnx.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060GPT_SoVITS/module/attentions_onnx.py:340\u0060 calls \u0060padding\u0060, \u0060_same_padding\u0060 and \u0060GPT_SoVITS/module/attentions.py:376\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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5ee9222703366b4f94496db7b16254102b5223aa87b0f635f93834a8ffc61e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/module/data_utils.py:137-144 | GPT_SoVITS/module/data_utils.py:635-642 \u2014 both copies are in the same file, so extract the block 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, \u0060GPT_SoVITS/module/data_utils.py:643\u0060 calls \u0060spectrogram_torch\u0060, \u0060spec_to_mel_torch\u0060, \u0060norm_spec\u0060 and \u0060GPT_SoVITS/module/data_utils.py:145\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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a157ff94eff0f09f555cf9a903751fc29909ed7c7695312a88c8bed68590e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): GPT_SoVITS/module/data_utils.py:469-476 | GPT_SoVITS/module/data_utils.py:917-923 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f95e105b11f94074ae2aab1c5618267f08cf17e13966d0d637b2b75dc7baad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/module/models.py:721-728 | GPT_SoVITS/module/models_onnx.py:657-664 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a261fb6b71783dd36a4b3f8c34a6abc1ba4d0012a6dfcbb39543210fa27bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/module/models.py:762-769 | GPT_SoVITS/module/models_onnx.py:698-705 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c254bfafc781dafcdd60028950a15d38fecac234ddf05cadfe2a3264dbca24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/text/cleaner.py:22-29 | GPT_SoVITS/text/cleaner.py:59-66 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/text/cleaner.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"050cd19b71a380cc4d46b4cf11b6d27f3573865b1d7964f3e6f1d3d993e83216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/text/en_normalization/expend.py:118-125 | GPT_SoVITS/text/en_normalization/expend.py:142-152 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/en_normalization/expend.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"36215eb67c1ad581d951009da3f9ad6b8444110c672434a556775d18ca2f8749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): webui.py:403-410 | webui.py:746-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060webui.py:403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d833b5662085f55e959cf1691dba0c1909745409fba334b3909b128b0627867f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): GPT_SoVITS/module/data_utils.py:25-31 | GPT_SoVITS/module/data_utils.py:287-293 | GPT_SoVITS/module/data_utils.py:525-531 | GPT_SoVITS/module/data_utils.py:736-742 \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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"717947944c48fa717c3e069d18788d8f6029d4c003442449eed6282da0094012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): GPT_SoVITS/module/data_utils.py:222-228 | GPT_SoVITS/module/data_utils.py:480-487 | GPT_SoVITS/module/data_utils.py:691-698 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060GPT_SoVITS/module/data_utils.py:231\u0060 calls \u0060FloatTensor\u0060 and \u0060GPT_SoVITS/module/data_utils.py:490\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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b970add11d8dc8be9532adfe397162c9ffaf5757792a11e5d0ffcf7eb94ad288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 4): GPT_SoVITS/module/data_utils.py:110-119 | GPT_SoVITS/module/data_utils.py:376-388 | GPT_SoVITS/module/data_utils.py:614-626 | GPT_SoVITS/module/data_utils.py:829-837 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060GPT_SoVITS/module/data_utils.py:838\u0060 calls \u0060zeros\u0060 and \u0060GPT_SoVITS/module/data_utils.py:390\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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4cc00eee2d8d890c01b3179e11a6aa4d9d6e17faf4a3f78f1b83d7f76ddc1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): webui.py:784-790 | webui.py:874-880 | webui.py:1061-1067 \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":"webui.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"57301c0302d8b20712ef4cb6b4cca80df5851b64d2996465aa9f03a3977d60e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:558-564 | GPT_SoVITS/AR/models/t2s_model.py:909-914 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab8f529114b81f09d60185ee0d50f12d8732935bd7f98d4446b33fe19699f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): GPT_SoVITS/AR/modules/embedding.py:44-50 | GPT_SoVITS/AR/modules/embedding_onnx.py:44-49 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/embedding.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"310db2c8f8fa1759a0cb196fd10ea49e3d0c7668c746e7cc1750ae2e657c5036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py:24-32 | GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:187-195 \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":"GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb43156aa0041d12849567949003a5f100a89ca627bc9003a6835dc3d130b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:67-74 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:68-75 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/runner_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/runner.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"44593d29950409ed15ec41efb0bc49e1be863e361fef54f168a421227a07058b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:129-135 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:176-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \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":"GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e401802bfeeb3540085f6fc0e91c84dcdac10de921b16d0eab5985f141fdb299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): GPT_SoVITS/module/attentions.py:295-305 | GPT_SoVITS/module/attentions_onnx.py:258-268 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/attentions.py\u0060 and \u0060GPT_SoVITS/module/attentions_onnx.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab37eb4e35a16cf1bad4217cb5a0819118fb9bea202e5da38d700a1a7a168ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/module/attentions.py:312-318 | GPT_SoVITS/module/attentions_onnx.py:275-281 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/attentions.py\u0060 and \u0060GPT_SoVITS/module/attentions_onnx.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1387457942f1a97f41a57f7c31f352a510520cc707f29c9f45c0a6eaea935e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/module/attentions.py:386-392 | GPT_SoVITS/module/attentions_onnx.py:353-359 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/attentions.py\u0060 and \u0060GPT_SoVITS/module/attentions_onnx.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"45754749b93f3777832b9708dd53c7438e33b3eb1dd088be14c54105d033454b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/module/models.py:947-953 | GPT_SoVITS/module/models.py:1486-1492 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"1800fa07059b55e58ce1cef4e2919be7284b7996049f03cd8a5cb431ee0e6df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/prepare_datasets/2-get-sv.py:75-81 | GPT_SoVITS/sv.py:26-32 \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 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/prepare_datasets/2-get-sv.py:74\u0060 calls \u0060res\u0060 and \u0060GPT_SoVITS/sv.py:25\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":"GPT_SoVITS/prepare_datasets/2-get-sv.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfc7141306b20d2a507ca5bdf4f0bd822f1af085f3e991bd30597c727906dd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/text/tone_sandhi.py:695-702 | GPT_SoVITS/text/tone_sandhi.py:724-730 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \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":"GPT_SoVITS/text/tone_sandhi.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"105aafd6fab1054cdfa16532baf55f8651be5778711533f83615d3e39a5f3260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): webui.py:1008-1014 | webui.py:1108-1114 | webui.py:1217-1223 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060webui.py:1115\u0060 calls \u0060join\u0060, \u0060process_info\u0060 and \u0060webui.py:1224\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":"webui.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a41d2ebaf2534064b03b470e3d7d54575d0a142cde59ee36cd49cbfa0fae97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:765-771 | GPT_SoVITS/export_torch_script.py:536-541 \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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a787939cf9a823b15ae9230737674b17df79d64ea80ebb2bfd1eb70f3980c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/Accel/MLX/G2PW/model.py:59-66 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:59-66 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/G2PW/model.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/G2PW/model.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"27455b6ac33529f3cb07eb48c87a42673a0969733fd3cf2bfea537231571d5d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/Accel/MLX/G2PW/model.py:214-219 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:215-220 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/G2PW/model.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/G2PW/model.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"af318881860749ae6668ac983247e541d4b32b1a1c9ad8af8af3eee25b0fe306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/TTS.py:50-57 | GPT_SoVITS/inference_webui.py:537-544 \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 \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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2b252a454b522b47423dbc65ff5bd5ebd6aa7fe292ea7c2c5d179a5a086bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/TTS.py:1506-1512 | GPT_SoVITS/TTS_infer_pack/TTS.py:1525-1530 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/TTS_infer_pack/TTS.py:1506\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19c4c60617cbe335863e00c588e59eb844bb99dc67fed3365632832b3e70551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/export_torch_script.py:522-527 | GPT_SoVITS/stream_v2pro.py:111-118 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4b4e923a20ce8ec7430b509c110bc40fdd8b92f0242114b7fc1be0d849ff9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/export_torch_script.py:692-697 | GPT_SoVITS/export_torch_script.py:795-801 \u2014 both copies are in the same file, so extract the block 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, \u0060GPT_SoVITS/export_torch_script.py:803\u0060 calls \u0060sv_model\u0060 and \u0060GPT_SoVITS/export_torch_script.py:699\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":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40b014a21b55c972e84762e1180824cfab11ba758ef11eddc5e4163e4bf481f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/export_torch_script_v3v4.py:830-835 | api.py:1019-1025 \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":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"9218679db49327c1a62c71f560c2f66a9b6a1be06125c10c46888adf303ab531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/inference_webui.py:870-875 | api.py:846-851 \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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"841d9b09b91cb786370ecb171550dee2c7fa0b995e2587fed9423693a33295c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/module/models.py:517-522 | GPT_SoVITS/module/models_onnx.py:459-464 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/module/models.py:517\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"0056c7d3e3e06af4c7e235a916f8b2bc6a0a2c2aef8f7876587e0bfe4207f18b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/module/models.py:1333-1338 | GPT_SoVITS/module/models.py:1483-1490 \u2014 both copies are in the same file, so extract the block 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, \u0060GPT_SoVITS/module/models.py:1339\u0060 calls \u0060eval\u0060 and \u0060GPT_SoVITS/module/models.py:1491\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":"GPT_SoVITS/module/models.py"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ebfc33f49e0934dd8b843adc0bdb559a4a978fd3c27121ad753f6abd1aa2a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api_v2.py:403-408 | api_v2.py:410-415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api_v2.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7dfe532117aeb3686cbd2f96485281d6dc8c6029930bc85adb229abd0f4bf8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): GPT_SoVITS/text/cantonese.py:97-103 | GPT_SoVITS/text/chinese.py:49-55 | GPT_SoVITS/text/chinese.py:60-66 | GPT_SoVITS/text/chinese2.py:64-70 | GPT_SoVITS/text/chinese2.py:307-313 \u2014 before extracting anything, compare \u0060GPT_SoVITS/text/chinese.py\u0060 and \u0060GPT_SoVITS/text/chinese2.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/cantonese.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3f9b42345aa68ad999e0b9597b765877000815a84c25c308b82bb58dce9ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): GPT_SoVITS/module/data_utils.py:216-220 | GPT_SoVITS/module/data_utils.py:473-478 | GPT_SoVITS/module/data_utils.py:684-689 | GPT_SoVITS/module/data_utils.py:922-926 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/module/data_utils.py:920\u0060 calls \u0060LongTensor\u0060 and \u0060GPT_SoVITS/module/data_utils.py:213\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":"GPT_SoVITS/module/data_utils.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"75536be64c359193df6550fd111ea111b30e0a6921f1daf1fdd05ab832f60bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py:32-36 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py:30-34 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:32-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"527ac6f29245f2f23097f3f842541e9adad0e4bc698396e2ede2213eb5763c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py:55-59 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py:53-57 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:59-63 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef522b55252f48bcac2a7092615ed9118930cd44ce2201c69470b27831b118b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): GPT_SoVITS/module/models.py:987-991 | GPT_SoVITS/module/models.py:1035-1039 | GPT_SoVITS/module/models_onnx.py:901-905 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b201b2d786ecadb6d3d2bd1b3f31968cf9fb2e1f706dc8b25b8e17b08a0b2e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): GPT_SoVITS/s2_train.py:380-384 | GPT_SoVITS/s2_train_v3.py:346-351 | GPT_SoVITS/s2_train_v3_lora.py:308-313 \u2014 before extracting anything, compare \u0060GPT_SoVITS/s2_train.py\u0060 and \u0060GPT_SoVITS/s2_train_v3.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/s2_train.py:380\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/s2_train.py:379\u0060 calls \u0060cuda\u0060 and \u0060GPT_SoVITS/s2_train_v3.py:346\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":"GPT_SoVITS/s2_train.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd078f0b1f39c604b19190a67ce4f4e88709a1771f090f478008ed55b9cd5934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:560-566 | GPT_SoVITS/AR/models/t2s_model_onnx.py:385-389 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"21042a777ce00ee15bc55257e5dcc64c54df512ac8d1918cf77f2130628ba681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model_onnx.py:384-388 | GPT_SoVITS/export_torch_script.py:529-533 \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":"GPT_SoVITS/AR/models/t2s_model_onnx.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ab178a703911079e8198b3f0e6dab3bd7be5ff0fdabff2242564c08d514bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/export_torch_script_v3v4.py:654-658 | GPT_SoVITS/module/models_onnx.py:939-943 \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":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae6739b1ee3e76a8d21b45013df7603d294a079f3c5a12ec7d39d27146813a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/inference_webui.py:178-185 | api.py:508-515 \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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4349b36d3a0f7744b373b432a959e15f18656421a7a3031bf8e1a5457a5e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/module/attentions.py:70-75 | GPT_SoVITS/module/attentions.py:581-586 \u2014 both copies are in the same file, so extract the block 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, \u0060GPT_SoVITS/module/attentions.py:579\u0060 calls \u0060subsequent_mask\u0060, \u0060size\u0060, \u0060to\u0060 and \u0060GPT_SoVITS/module/attentions.py:68\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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b71738d703867aedbf19ac97deb907c340b4465b224b727776f9577370dece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/module/ddp_utils.py:63-68 | GPT_SoVITS/module/ddp_utils.py:120-125 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/ddp_utils.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3e115e0c313d854ed28c0d91d8747799f83abd4fd9ae2e3cd4194eec1c365e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 6): GPT_SoVITS/module/models.py:365-367 | GPT_SoVITS/module/models.py:394-396 | GPT_SoVITS/module/models.py:434-438 | GPT_SoVITS/module/models_onnx.py:307-309 | GPT_SoVITS/module/models_onnx.py:336-338 | GPT_SoVITS/module/models_onnx.py:376-380 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba8ac007bb654ca80a50ed8224b2931afd99cdc553e317ee28d1803785f5c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/module/models.py:1372-1376 | GPT_SoVITS/module/models.py:1532-1536 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f931d2ff1148ed356bdbc95be3e53db293ba9f73e7eed3833f0c746f95d8b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 3): GPT_SoVITS/module/models.py:1314-1315 | GPT_SoVITS/module/models.py:1474-1478 | GPT_SoVITS/module/models_onnx.py:1055-1059 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/module/models.py:1474\u0060 calls \u0060Conv1d\u0060 and \u0060GPT_SoVITS/module/models.py:1314\u0060 does not \u2014 after which the two agree again for 5 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5eb3a949da4935a611ca0de455267aa8b8177d0942d6069833b5fca1aa8764d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/utils.py:135-142 | GPT_SoVITS/utils.py:168-175 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \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":"GPT_SoVITS/utils.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d03c42911c1cecc97f0c40a659f1fba132106eb2e9364f55e9004f0bfb46ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/AR/models/t2s_model.py:127-133 | GPT_SoVITS/export_torch_script.py:239-245 \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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"13eadbc11789a14d46903db1b12690435e6ee1aff21d4ff9250831f5cd1fc8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/AR/modules/embedding.py:15-21 | GPT_SoVITS/AR/modules/embedding_onnx.py:15-21 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/embedding.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e3c1a1cadcff092a5eb4a34632ad9bd3ceab2b74c152ebd7f4068fc8cf8276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/AR/modules/transformer.py:337-341 | GPT_SoVITS/AR/modules/transformer_onnx.py:256-260 \u2014 before extracting anything, compare \u0060GPT_SoVITS/AR/modules/transformer.py\u0060 and \u0060GPT_SoVITS/AR/modules/transformer_onnx.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/transformer.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"59be1f0574e9e240fda3c32502c7d9087ba938c1ae9e54d5c08d238220196557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py:65-83 | GPT_SoVITS/Accel/MLX/AR/backends/mlx_varlen.py:65-83 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py\u0060 and \u0060GPT_SoVITS/Accel/MLX/AR/backends/mlx_varlen.py\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 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/backends/mlx_static.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d0cdc85e89a79b293a184b321b478e5dbe6daf5b33f28250749b32f561cc72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:38-48 | GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:44-54 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85ec30da0b77efee3cc76448f763da60dda7eb00a29b52234f49c80bf857ea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/runner_mlx.py:134-139 | GPT_SoVITS/Accel/PyTorch/AR/runner.py:202-207 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/runner_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/runner.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b322ea8fcf765b7d63d9989141b3f19bd82be6e127698d4c35c4eee632318c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py:141-150 | GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py:140-149 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc1664f4185c85f2f58730618130d5ddf403a60c12f32bca69a9c39b81cd93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:32-37 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:36-41 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f806e28bb36476e496df75b6f6dacffe1a8378573fba0b882424846c67945bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:248-258 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:315-324 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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: the declarations holding them bind \u0060x\u0060 to \u0060Array\u0060 in one and \u0060Tensor\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b48d2c81d98ac8211eb91350af889035e607f1bc9f503bfaee3882d55e292a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py:274-288 | GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py:338-352 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/AR/t2s_model_abc.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/AR/t2s_model_abc_mlx.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfaad535cbbdfffad679436c192be122308fbd1b2d5c59bb41d46e3813ccf74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/Accel/MLX/G2PW/model.py:69-77 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:69-77 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/G2PW/model.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/G2PW/model.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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: the declarations holding them bind \u0060x\u0060 to \u0060Array\u0060 in one and \u0060Tensor\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9803babbd706884396c1f54eedae5c44fe84a75809ee4aa285fe613765bfa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/Accel/MLX/G2PW/model.py:101-106 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:104-109 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/G2PW/model.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/G2PW/model.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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: the declarations holding them bind \u0060input_ids\u0060 to \u0060Array\u0060 in one and \u0060Tensor\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd78702cc40e5758c9aff9222cd4b3dce12f7b10ae9e5d432045105ced41e741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/Accel/MLX/G2PW/model.py:111-118 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:114-121 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/G2PW/model.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/G2PW/model.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e403c19275ba30bfd73af16e1b9099a646238c60e10c9e97b188909396fe83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py:74-78 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py:72-76 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:78-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/backends/flash_attn_varlen_cuda_graph.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95e83ddb31b2fa178964821d075eaf2994c696f19c4360d66019a8427abb0cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py:21-27 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:23-29 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8490fcb7e4733ec630036a35a9f49cccd57a21e2c46ed1a5f1b7215a523809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): GPT_SoVITS/TTS_infer_pack/TTS.py:197-202 | GPT_SoVITS/export_torch_script.py:163-168 | GPT_SoVITS/export_torch_script_v3v4.py:554-559 | GPT_SoVITS/inference_webui.py:195-200 | GPT_SoVITS/onnx_export.py:44-49 | api.py:616-621 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da3aed79a8fd20289e93535b3f3d82c4b6d6a9e1080f4de7a1337a9ecd547f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py:225-233 | GPT_SoVITS/inference_webui.py:1277-1285 \u2014 before extracting anything, compare \u0060GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py\u0060 and \u0060GPT_SoVITS/inference_webui.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \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":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dc428b1c18e6896af53f002e38ca34ce555420528d36be59196c385ca7b91e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/inference_webui.py:17-25 | GPT_SoVITS/inference_webui_fast.py:17-25 \u2014 before extracting anything, compare \u0060GPT_SoVITS/inference_webui.py\u0060 and \u0060GPT_SoVITS/inference_webui_fast.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84e7be988dfd873ba95948af47ec927993db3c977c692c08a3f6398766eeaec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/inference_webui.py:453-460 | api.py:230-237 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f6f18abb0f2581c27e66860d5ec829ec079552db10c53c8b16700e8abfa484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/module/attentions.py:377-383 | GPT_SoVITS/module/attentions_onnx.py:344-350 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/attentions.py\u0060 and \u0060GPT_SoVITS/module/attentions_onnx.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060GPT_SoVITS/module/attentions_onnx.py:340\u0060 calls \u0060padding\u0060, \u0060_same_padding\u0060 and \u0060GPT_SoVITS/module/attentions.py:374\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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"a817e79ce74a25e10d357ef16ef1f09fd06c1784c1e3d35977d99728c73922d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/module/attentions_onnx.py:13-18 | GPT_SoVITS/module/modules.py:22-27 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions_onnx.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54752a9237159c78ecf7ca536dccee657762e4a9e53d32969dc539c7cae751c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/module/attentions_onnx.py:28-33 | GPT_SoVITS/module/commons.py:98-103 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"GPT_SoVITS/module/attentions_onnx.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75475bd150fd9b46ea33ddd937ee1a3f2c80324ac72b66aa1cbb5af5a67cebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/module/models.py:323-329 | GPT_SoVITS/module/models_onnx.py:265-271 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/module/models.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"807c161a950df50112d185ec9cc249a59cf428d50353d7950744f7b743a0ef62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): GPT_SoVITS/module/models.py:596-608 | GPT_SoVITS/module/models_onnx.py:538-550 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7267a6fbebe8c30a6c4d5168beaa89f17e359f31c85ddc01f5eba30285a5f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): GPT_SoVITS/module/models.py:733-739 | GPT_SoVITS/module/models_onnx.py:669-675 \u2014 before extracting anything, compare \u0060GPT_SoVITS/module/models.py\u0060 and \u0060GPT_SoVITS/module/models_onnx.py\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 559 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GPT_SoVITS/module/models.py:733\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c0d858456402ca47e8199b40979c8ab25a3319fa95be31a3f92e5ed2695f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): GPT_SoVITS/prepare_datasets/1-get-text.py:38-43 | GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py:46-51 | GPT_SoVITS/prepare_datasets/2-get-sv.py:34-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/prepare_datasets/1-get-text.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe8352de1ca1fdb79f0e121446bcc59e8f87a33dea950e95f4ecd96231767ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/process_ckpt.py:13-17 | GPT_SoVITS/utils.py:68-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/process_ckpt.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd240ede74b8ab411a4979183afaaf1319eb9bfc3260ad692af1061ae1afa2d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): GPT_SoVITS/text/chinese.py:173-181 | GPT_SoVITS/text/chinese2.py:325-333 \u2014 before extracting anything, compare \u0060GPT_SoVITS/text/chinese.py\u0060 and \u0060GPT_SoVITS/text/chinese2.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"GPT_SoVITS/text/chinese.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"da93e4579bf462c5d92c365c45e25dc4c67585d396917829248d3267f8f957dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/AR/models/utils.py:245-249 | GPT_SoVITS/AR/models/utils.py:253-257 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/AR/models/utils.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eef22f90cc0d4d1c9cd498bdcbb09eed63be75d8c709c711b1dac11d698a229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/Accel/MLX/G2PW/model.py:94-98 | GPT_SoVITS/Accel/PyTorch/G2PW/model.py:96-100 \u2014 before extracting anything, compare \u0060GPT_SoVITS/Accel/MLX/G2PW/model.py\u0060 and \u0060GPT_SoVITS/Accel/PyTorch/G2PW/model.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"GPT_SoVITS/Accel/MLX/G2PW/model.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e5b3c8b8116d8b9c912a2fd9a7c3360adbf5f6fb318740044eeabfa4b4cdd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py:35-40 | GPT_SoVITS/Accel/PyTorch/AR/backends/torch_varlen.py:37-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/backends/torch_static_cuda_graph.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a01f1eb814957eb2bd636590b3317643f1a7ee0e5ee118d3f30686952bf8b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/inference_webui.py:854-858 | GPT_SoVITS/inference_webui_fast.py:83-87 \u2014 before extracting anything, compare \u0060GPT_SoVITS/inference_webui.py\u0060 and \u0060GPT_SoVITS/inference_webui_fast.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbe5da27e4b18ed56efa379eaf72b6687b31edd1c80c029a0f2aef43ec74e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/module/attentions.py:58-62 | GPT_SoVITS/module/attentions.py:537-541 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ae56fc2fc8ccd64f4b05a69ed12e49523f49b1565b13ac22270bfe59f37ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/module/attentions_onnx.py:372-376 | GPT_SoVITS/module/mrte_model.py:19-23 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions_onnx.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f62d852ce1cc403cdf905b2edce3c04e484d102a8f2ffadb2efa6beabac894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): GPT_SoVITS/module/models.py:1349-1354 | GPT_SoVITS/module/models.py:1503-1508 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9c0c974efe5883a6012a57691205e41dbc813994bd3097814431569f5ebc09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): GPT_SoVITS/module/models.py:1362-1366 | GPT_SoVITS/module/models.py:1526-1530 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/models.py"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8e339fd356b68436df14abee0fafcb87de26b7058d592329133dc0d3921c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): GPT_SoVITS/module/transforms.py:124-131 | GPT_SoVITS/module/transforms.py:135-142 \u2014 both copies are in the same file, so extract the block 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":"GPT_SoVITS/module/transforms.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"be842aca19d0a11f7b66dcbece48452b38fe21ac9ef2295c7ff363301a88ab66"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (110 shared lines): tools/uvr5/vr.py:46-187 | tools/uvr5/vr.py:220-350 \u2014 These two members are variants of one another: 110 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":"tools/uvr5/vr.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e0b00467476567207833650bedddf7bb96d0a2f156882f247920c558b4d834"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (105 shared lines): tools/uvr5/bs_roformer/bs_roformer.py:444-626 | tools/uvr5/bs_roformer/mel_band_roformer.py:423-606 \u2014 These two members are variants of one another: 105 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":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdd15f40f63ffc86b11c727ee5d9e6532cecf8b55f69659c264085b77b79965"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): tools/uvr5/lib/lib_v5/nets_61968KB.py:10-21 | tools/uvr5/lib/lib_v5/nets_new.py:10-23 \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":"tools/uvr5/lib/lib_v5/nets_61968KB.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90569a3bcb19ea035df2fd561fea29ce042b46912929f5edad3e789e7f8b46d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): tools/uvr5/lib/lib_v5/layers_123821KB.py:86-95 | tools/uvr5/lib/lib_v5/layers_new.py:67-77 \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":"tools/uvr5/lib/lib_v5/layers_123821KB.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"da28351fd9e46693e63f51b42667bc70ab7115c4e38ef4678b03046a32037161"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): tools/uvr5/lib/lib_v5/layers_123821KB.py:98-106 | tools/uvr5/lib/lib_v5/layers_new.py:80-92 \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":"tools/uvr5/lib/lib_v5/layers_123821KB.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c400e49ae6eb25e7f337346ab27380651eb0aa16df02a78a6f0b3b9021296a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): tools/uvr5/bs_roformer/bs_roformer.py:217-232 | tools/uvr5/bs_roformer/mel_band_roformer.py:226-241 \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":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27aae7aa58b6db254fc4953b110e604b495cdf81f392765cd590d59fbcb2413"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): tools/uvr5/vr.py:21-43 | tools/uvr5/vr.py:192-215 \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":"tools/uvr5/vr.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc475f80f2c9496fb876a91002e1b4e9b7544451b9ea52d1c6b3c753c81dc81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): tools/uvr5/lib/lib_v5/nets_61968KB.py:24-36 | tools/uvr5/lib/lib_v5/nets_new.py:26-40 \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":"tools/uvr5/lib/lib_v5/nets_61968KB.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"489a774b4bc19b781fe6bce3f505326b53118eb7578951f87cee60735b1ff532"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): tools/uvr5/lib/lib_v5/layers_123821KB.py:72-81 | tools/uvr5/lib/lib_v5/layers_new.py:50-62 \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":"tools/uvr5/lib/lib_v5/layers_123821KB.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf059f552d8e79e3e51285e22236e3cb086f69893a4dbff5a28e364040dd03f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): tools/uvr5/lib/lib_v5/layers_123821KB.py:54-56 | tools/uvr5/lib/lib_v5/layers_new.py:31-33 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/lib/lib_v5/layers_123821KB.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1316d2f82b7f93abd69f101b69e6eccef116f2a865a26aa92ff266d22dda4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): tools/uvr5/lib/lib_v5/nets_61968KB.py:116-122 | tools/uvr5/lib/lib_v5/nets_new.py:109-115 \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":"tools/uvr5/lib/lib_v5/nets_61968KB.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dd37c6e96927369ea90c4e0fb7bc4f5e5f5c57df2e14af435c3d0a22fb9582"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): tools/uvr5/lib/lib_v5/layers_123821KB.py:67-69 | tools/uvr5/lib/lib_v5/layers_new.py:44-47 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/lib/lib_v5/layers_123821KB.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a593d3276896b0217c8d28031b329561fc98c7d61cdb051d85974075d4b81775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): tools/uvr5/vr.py:46-107 | tools/uvr5/vr.py:220-281 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/uvr5/vr.py:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"tools/uvr5/vr.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6b18903829fa99f8034d1f0629eb751a69cfa43d0a31d4a6e7d7c90d0a210d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:494-542 | tools/uvr5/bs_roformer/mel_band_roformer.py:472-520 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c62d24478fed309a3696827356bae750640c5fba2f7cdf623cbd2314bd760b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): tools/my_utils.py:141-184 | tools/my_utils.py:188-231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"tools/my_utils.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2050819b4fc47e60fd4d8c57a7a48f87ae11bf109ce2f6fb9c71f511b8822f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:585-626 | tools/uvr5/bs_roformer/mel_band_roformer.py:565-606 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbfd1cfb7fd4047bdfe18791ffb1f5f0a473d556f9ae9777263cc03565d9475"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): tools/uvr5/vr.py:286-308 | tools/uvr5/vr.py:321-341 \u2014 both copies are in the same file, so extract the block 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":"tools/uvr5/vr.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d96e9ccdfd74c802173272120baa7e80f8a1fa8c356d990ea60d1d32c3a84e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:420-441 | tools/uvr5/bs_roformer/mel_band_roformer.py:397-418 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89cc8868ac2f74448429b3c09f7714163bbae44a14075c522e638062a53d998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): tools/AP_BWE_main/models/model.py:273-292 | tools/AP_BWE_main/models/model.py:367-386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \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":"tools/AP_BWE_main/models/model.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c36e02a6ec0d028ab42086279416341937e7f23826e1ca3807dddf37c3ac5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:162-180 | tools/uvr5/bs_roformer/mel_band_roformer.py:171-189 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d762026b22be1bdd8c5b497cb7b68e7f67233fcbd4775b1139ff2e4d0876c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:366-382 | tools/uvr5/bs_roformer/mel_band_roformer.py:311-327 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/uvr5/bs_roformer/bs_roformer.py:366\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"179fd6b83af1626e39cdac75009dbd4cc79c9ed831572339628f982a8e0349dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): tools/uvr5/vr.py:125-141 | tools/uvr5/vr.py:162-178 \u2014 both copies are in the same file, so extract the block 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":"tools/uvr5/vr.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd2fb27e7b0804ba4853a06ba32bd805b8212700c7a734935b7686ad5f7dde8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:384-399 | tools/uvr5/bs_roformer/mel_band_roformer.py:328-343 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/uvr5/bs_roformer/bs_roformer.py:384\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a479ab8d0ac200c62fdd477da0fef7450d3d0976cac2de3e02c1bfad6aadcef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): tools/uvr5/vr.py:136-150 | tools/uvr5/vr.py:173-187 | tools/uvr5/vr.py:303-317 | tools/uvr5/vr.py:336-350 \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":"tools/uvr5/vr.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"020793ccfa2a12fd4989dd46267dc078b5a62f7e96dc1edfa63b0d2584749305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): tools/AP_BWE_main/models/model.py:253-268 | tools/AP_BWE_main/models/model.py:347-362 \u2014 both copies are in the same file, so extract the block 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":"tools/AP_BWE_main/models/model.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee061f8f276abece61c097f5b5d0745bca9213a5af69eac100d002173f366fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:78-92 | tools/uvr5/bs_roformer/mel_band_roformer.py:87-101 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd680e0387552622139febc75b45643e0ddc0bb2276863020632e4f666f78b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:95-109 | tools/uvr5/bs_roformer/mel_band_roformer.py:104-118 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8b76af6e883ae986a3b27c11ec76ae05d71eb2f96c564f174cce594a6dda87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): tools/AP_BWE_main/models/model.py:229-242 | tools/AP_BWE_main/models/model.py:323-336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \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":"tools/AP_BWE_main/models/model.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91a8f97715660d2df06eec47c7cf7ad57c2abb3abc3d3e4610340f4a165d2d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): tools/uvr5/lib/lib_v5/layers_123821KB.py:10-23 | tools/uvr5/lib/lib_v5/layers_new.py:10-23 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/lib/lib_v5/layers_123821KB.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7f5d4896c3e0c5ed8c944b3ccdbc444a312bac432f8a57ba02ff76b1d66357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:548-561 | tools/uvr5/bs_roformer/mel_band_roformer.py:523-536 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060tools/uvr5/bs_roformer/bs_roformer.py:544\u0060 calls \u0060final_norm\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py:520\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":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ede8a4ee840c72bcebb8e40d8a4e283d72b7b06a4ec423da3a1942ac9d5c7c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:119-131 | tools/uvr5/bs_roformer/mel_band_roformer.py:128-140 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9354b1d6f3b13199ac35433ae9050d58b486051f1aef654423535d9ad04c167c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:222-232 | tools/uvr5/bs_roformer/mel_band_roformer.py:231-241 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"594224f3871a6920b315a0d025a5c2c41df58fb26d6141c66bab802a508bed84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:238-248 | tools/uvr5/bs_roformer/mel_band_roformer.py:247-257 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dfbf36332b83c28127150eaec0c0fae0097f612b3bd3dd4383b0c93091bd9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:61-70 | tools/uvr5/bs_roformer/mel_band_roformer.py:70-79 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"086fc778c966d649d484ea52540be4e0921a95756fa679fef1164251c6b658c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:134-143 | tools/uvr5/bs_roformer/mel_band_roformer.py:143-152 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea269cf803254b80a6d6fd344b57d482ab88d3da47afd27651383d95a570e6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): tools/uvr5/vr.py:158-165 | tools/uvr5/vr.py:286-295 | tools/uvr5/vr.py:321-328 \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 \u0060tools/uvr5/vr.py:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/vr.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"433684928387ae5b663e0300754e9a6ea328becd71b849a7ce428d33c1f797ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/asr/fasterwhisper_asr.py:138-145 | tools/asr/funasr_asr.py:156-163 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060tools/asr/fasterwhisper_asr.py:148\u0060 calls \u0060load_cudnn\u0060 and \u0060tools/asr/funasr_asr.py:166\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":"tools/asr/fasterwhisper_asr.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ed962cc6e73dad1dc335047e79711aaf09a0d9877486551c9d4f2f18216bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/uvr5/lib/lib_v5/nets_61968KB.py:81-88 | tools/uvr5/lib/lib_v5/nets_new.py:89-96 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/lib/lib_v5/nets_61968KB.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7016f640d15f865cea26ff3d58f64323eeb299fccdab11aa8d25fa812958c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/uvr5/vr.py:112-118 | tools/uvr5/vr.py:283-289 \u2014 both copies are in the same file, so extract the block 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":"tools/uvr5/vr.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c98ca8377b62a4d4bc8dc13ae664a8d538e45f6a8aadf762edab7c7b1aad66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): tools/uvr5/lib/lib_v5/layers_123821KB.py:86-91 | tools/uvr5/lib/lib_v5/layers_new.py:67-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/lib/lib_v5/layers_123821KB.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"75829753a93956db4c337d4f5469ba25d20465a7e3c793d52d5d5b50476df630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/uvr5/lib/lib_v5/layers_123821KB.py:98-105 | tools/uvr5/lib/lib_v5/layers_new.py:80-87 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/lib/lib_v5/layers_123821KB.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e8092f3ba548fc70f785927083bbf403a32c578fb4db5f3e7c936d73ede33b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): tools/uvr5/vr.py:114-120 | tools/uvr5/vr.py:157-161 | tools/uvr5/vr.py:285-291 | tools/uvr5/vr.py:320-324 \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":"tools/uvr5/vr.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d7090df5d6fd43c746f39cda22a153bae676b7f8da6fef4b7840663e0ce3fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:183-187 | tools/uvr5/bs_roformer/mel_band_roformer.py:192-196 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9810c70cbe365ef796527319ff03d7dd8a8b0e2b323f47e54ca1747780c5081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:196-203 | tools/uvr5/bs_roformer/mel_band_roformer.py:205-212 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2f593da188142fd87ca09d42ef52df25114f37103f48c9b5b632b94474b538"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:206-213 | tools/uvr5/bs_roformer/mel_band_roformer.py:215-222 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d74195fefed0f8851a3fe7b8ee3aa5f1c8e749aaafccdafa380df94b58a2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): tools/uvr5/bs_roformer/bs_roformer.py:251-259 | tools/uvr5/bs_roformer/mel_band_roformer.py:260-268 \u2014 before extracting anything, compare \u0060tools/uvr5/bs_roformer/bs_roformer.py\u0060 and \u0060tools/uvr5/bs_roformer/mel_band_roformer.py\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 294 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"224b6202d1e7ef35f6503e336a7c02392f22293b8449deb800ae215e5735fbc6"}},{"ruleId":"D5","level":"error","message":{"text":"Circular dependency: (root) \u2192 GPT_SoVITS \u2192 (root) (one cycle inside a mutually-dependent group of 3 modules)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1299da550bfa96bf56ad3c6284c4087cd89d6204038c71b951c118680b0bb9c6"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: frozendict: \u0060frozendict\u0060 2.5.1 is published on PyPI under \u0060LGPL-3.0-only\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"eabaddc5ace4df0a4a80aedb35b4fd43e6e12a49965a667944eb8cfdda09c895"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: GPT_SoVITS/TTS_infer_pack/TTS.py: GPT_SoVITS/TTS_infer_pack/TTS.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 110 in TTS.run at line 1133. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 00:26:17 \u002B08:00\u0027 --until=\u00272026-11-12 00:26:17 \u002B08:00\u0027 --full-history --no-merges -- GPT_SoVITS/TTS_infer_pack/TTS.py\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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2369142cf3affee15882fe0c2ae5a70e2dd4840b3d9c34fc6b7a1998f7f67408"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: GPT_SoVITS/inference_webui.py: GPT_SoVITS/inference_webui.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in inference_webui.get_tts_wav at line 878. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 00:26:17 \u002B08:00\u0027 --until=\u00272026-11-12 00:26:17 \u002B08:00\u0027 --full-history --no-merges -- GPT_SoVITS/inference_webui.py\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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"39308807323067dff5f7f7e0fc67d6ced8ba8a33716f7a31bcfa5c646f4b9119"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: GPT_SoVITS/inference_webui_fast.py: GPT_SoVITS/inference_webui_fast.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in inference_webui_fast.change_sovits_weights at line 262. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 00:26:17 \u002B08:00\u0027 --until=\u00272026-11-12 00:26:17 \u002B08:00\u0027 --full-history --no-merges -- GPT_SoVITS/inference_webui_fast.py\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":"GPT_SoVITS/inference_webui_fast.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"695e1979a595fa7631954a63fbce4de268c89833fd33f933750e3e916b918bbb"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 3 significant file(s) lose their only recent owner: GPT_SoVITS/module/modules.py, GPT_SoVITS/s2_train_v3.py, GPT_SoVITS/AR/modules/patched_mha_with_cache_onnx.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8788a674340287152cc8f045c095658c1f2f127daca961c47483818db3965cf7"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (6 single-owned of 117 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 117 of the 156 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: GPT_SoVITS/text/en_normalization/expend.py, GPT_SoVITS/text/LangSegmenter/langsegmenter.py, GPT_SoVITS/inference_cli.py."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: eng text normalize \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":"GPT_SoVITS/text/english.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d919ea5fcc100d72bc13e5d57a642a8dd7ffdba1828ab543a01f516c9720a68e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: jap text normalize \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":"GPT_SoVITS/text/japanese.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c40f80bcc6d1800259a775672f54ee54795808e67dcb3c779082d5b0c5db24"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: implement tones and word2ph \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":"GPT_SoVITS/text/japanese.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cee1645c15cbdbd29dbf24310e11cbfb09e26e9c82c96fc02d804684e9dc972"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: refine this type \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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"569d4c9cd82fa03f4a26a0b4c6e56561864ac768c6bab24b558f20636913f5fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: refine this type \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":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da7b01d5b1313ea69ce6e1d9ece2a4299d047190f5f1053ad59da942d5951c4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: DDPSink is currently enabled for unused parameter detection and \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":"GPT_SoVITS/module/ddp_utils.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"402cc33d22ed3382f5d59d08ea4ff330ed6737c8dbc70a1dd1b261878106e540"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO finish disentangling control flow so we don\u0027t do in-projections when statics are passed \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":"GPT_SoVITS/AR/modules/patched_mha_with_cache.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7237e3e1943df9b0cdf854e9e9cdfdca1eaf1cfd3e98e327a441ce63e892af6b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO finish disentangling control flow so we don\u0027t do in-projections when statics are passed \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":"GPT_SoVITS/AR/modules/patched_mha_with_cache.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"559c9cf2db370d6fe9ed25e74d136f43fac88dfb223e6b5afb9a66dc1c99409b"}},{"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 \u0060Dockerfile\u0060 makes this repository a deployable product (line 4)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dockerfile"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"f467cbcb372a9e1eadb8dd192191f314d3beec7e4c0d50dea27984255914cfab"}},{"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":"1bb0dea558c962008147632be66bbc1ae4a504b12e26965df4297ea1eff9828b"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"8f982cb67f03fdfd7137f3536e08273d3aaad8a5d58a5435b8095b11c7b88b83"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"6f58080db9e5d0d1906b09afa593334198fb3eb232ab50334b0d64af26c4ce39"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"140964603f582dff5f0fa7c957cc4c1e227ea90547920b4bad4c4e28a2b300df"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"23a3bcef3b31d3983ffbd3f2ee06018ca9aa9240ec9592fb96f1f18401716edc"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"5e111295d6917c424ba590d757b112f9323e51fe99432bf2c7fc2688c8e5b178"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"718044f3f75a7cabd34c7413e2dbca5693f3554e85eeb12a9d811e8dce21d606"},"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":"007059ec63de905ec8c77c6315d1846d44b4ed6c7fc1d8da295c00d81531945b"},"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":"4d39fdc5cccf2b465c3113f5b51d4c6019ab359832061675162ee69afeae7825"},"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":"97d84756951e37f850e21be05b9159783bb5a1bd47a117b9d1fe944fd64019cb"},"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":"461a98bbd616c2bd83dbdf60693320a2a37880bb6f3f281f4e0abc0e23bb7320"},"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":"02bd9e4728e4baba5c5a658e04bd779da0809c3d4a9739aee9910a3b531694c9"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"73581a2cbc3520df42e59f68ae963c258797d63e0b571051ea3f2b3250efcdea"},"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":"1d3be4a093ef880c2c2b9f4741e516f4b0cc188a38f53da880f4a1515ede16f8"},"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":"6959ce4e04e6bdca5bb81fe5f092ecdd5f8019f9feeebba526a44a7c4939d620"},"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":"27a304eba36ed7cacb42f02c39895b39e57a8f2cd904236ee0129287a1c34039"},"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":"f346dd1ce2364498f386af426d785327d502c2d41cf834dd183daaf7177f824a"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"b38c386633e52299efbf99d75dedf147e1a51d548b68979160111cc4e839293a"},"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":"12db8ac9dec72172c4fa9b98a3dae698e30e5c1dfa714b6205e1dd168537d8e1"},"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":"42a701464a31b2937288e9501bc7499c8143e2a73f42601d642ecce8fb4e21a9"},"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":"8ced6dcdceb63fa00b84a54ac9f6726462284f2d1d8a580f4d5ef4dd66e3c822"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"0b32e214b8a8f281df905b2244968b213950fd9cb39b591e1fb61bec662006ab"},"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":"637a52ae4f765e8c40dcfeb40daa50854ae10a7187691a22fc6e12f2c58970a8"},"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":"0d054b24533891e2441111d263b9ab18d8a355f989cd246b91950059cab35615"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"f3e390c479630b21ec688f8f7a531f669fe521f90d3d9086b538705950ed1789"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"83ec6426838e0ca50a8b94798b5c6729327dc4e647b4c5b2ed46fdb65f03861f"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"828af11abc34442e4048e4c87b976c1e61ccad67cfda1a28f0562aaf3b5fb171"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"9c796c6e076b0f6e9a03707f36a68b9993d28e9a227ff229baee82564ea8ca4a"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"b094ba90deb1a89cd0843438873a9e2dd67bd7309cf3bdfbf447fb6ed4c24cef"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"0c825b76503fa1bceb07fba4f0bf4b9e310b734c694217c9068a77eebdd0b5cc"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"9074cd12b7f7bf8799b4fc3141c8d36711d1d9997f7fcc69f470b19a2faf3b59"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"546d7199c02957053b4a4ce30d52e09f0463104fa0f8231781b96be5aaf3a9ae"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"54f2fc56df3a8e5501f879a0d0f390a19161a1e4667c5db82d9b83c74238101d"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"fc8a31c807ed081d461fb7e6a4063db10f891aa63ff9f0791ec2848219e0688c"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"f8f7f0ca3f619635bf0e3e92da536920a8a4a547d21ae4055d1ebf63caea022d"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"421b99b6ea268d86002d7687d529509d777b546009e5463c88cbb805ef3ab61f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"2d6d8b4e88d2bf7b04936c061da900749ee6ff9eae3cf9095b9b9c59683370d5"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d8e7c01c61fd8df170d223177dcb0bf49de29822f73429809f1fb687662c7423"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e928fc5a5483b2c0d3e6a5e747344ebd715dd9b447bc1e38f04a99b2e4a6b631"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"63172dd707c00c9ec559d48d6019c0b3b3e5ef10fd11df8f78da9ce52a236653"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b3177f6647d6ddcf67e212612425d5d1f16823618a154564836017510f4b657"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b0d60300626265f354a9e4feeb190ca9f060433b1e99b64d205d5859c0a51b3c"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ac05d90f7f74e31dbf6d3cd248dab2355eb98e6c0d4f199ef71abb464f46232"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9928a31a908095cc879fe1e1b498d86941fcd4c731bbe4a553b08af70c2180ce"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"82133a3fb8e6ef9d4dbc7944cdac3fd8188231b389f59b0f71f2ab05862615df"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"6460385695069598a38cf32fa19ea525fa912ae364ab2c869430d6d2025338de"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e3f23496bb0c65a3581c1054d49075dc9dd39d27578a396d71d05ee08a1a8a4f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"d5d5aa611d9fabd1a504b6c28b6d94e79df22c8e17983e8e9777ffde4bd21488"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"8d9d02b5720160fc3f8e74fe75d4ac6cabc01d5fbd089c22deb88e324d45756c"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e4cec2a1414212a682d85c6d7e87cbcad8a3b467bb88d8493f0390a37e04f55d"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"d1b0abd43d13dae6706543de555ecf7025c0c3f450199a3647723e5b0086b4eb"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"50ece5f0b2b96a1974953c3cfe75877d2f873cd4c25595da06a3d3fc8612628f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"de4356ca328ffe91161c455b5c8486edd2d699c690b870060cb21c7beb2c2434"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"168a6af53c91a3ea4c5962fb9c2fa8d04ffed6a6b051e0ccf3fa4ee24b8caa42"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"5f9ab6f2449c4037c52e40c680628cbee71b22c7ae0717f029698f17c9f6b857"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"fced3674fc74494482754fbb9427998111fcb2a1a0e78d29301e49686fd15b1c"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"3832939968b8ea485dc478c0d8eb1c4f0e806b1e353550a6e54405cdb877001c"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4cdba5fd20d7c39d7e9738fff74ed797a0bcc434f0e046be1f320e7fdb04c0b1"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c6af54200470190821722c2cf02bb5b720faf8d60fc99c5b52623e7bc67e9d83"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"9cb01b1b720f652887d136ec4f83134b712ebd68beab7dda512ddd48f0f6757e"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"29a18ed0b189490684c7c954a2b6db078e2e27c546c7047f58a88e5013b6169a"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4b7593b1205d6c3793a8818dddb7942721882111a4bcbcad0bda174d895553ed"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f00295365680203cc6e2420121d26100b4d577de62b2685d8beefbe74240e92"},"properties":{"dependency":{"package":"pytorch-lightning","version":"2.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3043","PYSEC-2026-3972"],"reachability":{"kind":"production","file":"GPT_SoVITS/AR/data/data_module.py","line":3}}}},{"ruleId":"D31","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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","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":"f81350fc3dfffbc838f764870ce97f2f6ddb8dc4c6f2c2165e2d4800342a8f22"},"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":"D31","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":"c3a8afada847b8d032ffc055852243aa910678eac1547752b93ccf723a4929e3"},"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":"D31","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":"af246f04d9b710836c41999a311508bfba9c01d582015128a4991629d4928b73"},"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":"D31","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":"799c6463bef84c0793f6437911d35f952029b73e962e3d3fe1f7195f8b8d65e0"},"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":"D31","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9397620442fde86fbf9f78ad40f177009db5786116f46b3b4483c320e74245"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"603d8e1268faad4e31d0260ac03e8b3c901cbe2d0f7d68054c7a9488935041a2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/models_onnx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"430b18adc61b8ca69da66faa9aadceb7976877f069e0195fa82083b8c1356542"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c064a4a3818913b2394fdf173477d72401108b3238d892338eb6ae3bed78aba6"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/stream_v2pro.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03e9417f94734add06be9c6ba0b97a7b65733d6175a2bd3c3904857c1878fff"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/mel_band_roformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6cea9c6e9979fc2e38fe1ce18f82c84e8c7863bae7ba7b69334f7f48d6475d"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 16 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: tools/uvr5/bs_roformer/bs_roformer.py, GPT_SoVITS/onnx_export.py, GPT_SoVITS/module/attentions_onnx.py, tools/uvr5/bsroformer.py, GPT_SoVITS/AR/models/t2s_model_onnx.py, GPT_SoVITS/inference_gui.py, GPT_SoVITS/text/en_normalization/expend.py, GPT_SoVITS/text/english.py (and 8 more) (22 orphaned of 117 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 117 of the 156 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57758618a08d0a43d592d3a03f0ed21e0b8e6b7792756c29567d142d94fead87"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/onnx_export.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e66ac276f7d0db570cd90f1cd667e5a9c2e97c627adb86f35811fa640b6f4a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/attentions_onnx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"853c1cb5d465ffadece757ba0d1b65ca36768cc53ea1661cd6d98782fb20f619"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/uvr5/bsroformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"413aefa16d351a42312e12285550e053b3a7040ef9a98fc523661c37643ce5e2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_model_onnx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e41c95a1b65192d51b73762ec953b46d724d820dff6754de57afd1f1a77c62"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_gui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f29b825fbaa7c4ed65ca5baaf08f719c2c023f197726517d1634ea5e166b1e3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/en_normalization/expend.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb339151d99618b7362eea4c957b4280e95cdfbf0104cedf39c62b714ba1410"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/english.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc27d39430354f8be8c8409383e8eae25c0f40750546a174322093b97bc6b370"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/transformer_onnx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"054996e54609ca5d27640afe6be0e0bdc96593cba3cfd42da3ee672331e9c6bc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db4781930bcf3622979abfff230854c3cd3aa6101fbbfbb24c45ad9b55da7af"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/module/ddp_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea8a1100e07039fc74b340364723b05ace3099d5ec9a8b87dc655f84b3e0d72"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/LangSegmenter/langsegmenter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a41b518e4249cf14ae121cafb9ea4528ea20e5411c97c4e860b8ef32fcb9914"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/activation_onnx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c54f624b58a10ac3fdab1b127d0e8212e375ff87d2071d48d68a22105160985"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/i18n/scan_i18n.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dab5949492077fd60efdb543e7f27767ef3b588194da8addcd4524dafa73bd9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c31d48629b7df2efca301ce4a7613b2a4133bd25cab8ef380131ee0d2fc09c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/models/t2s_lightning_module_onnx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67a435556d65ca0e31bff4229161702cf0e3d21e7785c87cadcba9b2633ff3b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: inference_webui.py \u2194 inference_webui_fast.py: \u0060GPT_SoVITS/inference_webui.py\u0060 and \u0060GPT_SoVITS/inference_webui_fast.py\u0060 change together 57% of the time (12 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u006059c44686\u0060 feat: add cache-dit (DBCache) block caching to the DiT sampler (#2868); \u006004a44eb9\u0060 Sync 20261031 v5 code update and remove unused v5_inference module; \u0060ac846f5b\u0060 Add v5 inference support to CUDA graph acceleration branch \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8837df64f80033e6df8c8984a7cf7f16a83391cf735d56a44bab047e8abaa979"}},{"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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"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":"18fa2fae62a451b936a0638968179b10582ad57db23cebaa17d698c71cf7009f"},"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":"48461f4d923d7335b412247d25177e4f380f2a6f69ac6734c374d1c24bef0be4"},"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":"AX3","level":"error","message":{"text":"Project dependency cycle: The projects (root) \u2192 GPT_SoVITS \u2192 (root) (one cycle inside a mutually-dependent group of 3 projects) form a reference cycle. Cyclic dependencies prevent independent build/test/deploy, blur ownership, and tend to grow into a big ball of mud. Break the cycle by extracting the shared types into a separate project both can reference."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"06ab53bf48f900cd058c3a245e9d464fe90285845f653aa8b4930ed0ff055650"}},{"ruleId":"C2","level":"warning","message":{"text":"No authorization: This repository serves requests \u2014 a request handler (@app.post() (api.py:1360) \u2014 and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdd4670c8a40cb50cba3c16b5c5de611922ca4df94762b84ddada5e23709f97"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 6 application file(s) sit at the repository root beside the build and tooling files (\u0060api.py\u0060, \u0060api_v2.py\u0060, \u0060config.py\u0060, \u0060test_api_v2_streaming.py\u0060, \u0060test_official_streaming.py\u0060 and 1 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: tools/AP_BWE_main/README.md links to \u0060requirements.txt\u0060, but \u0060tools/AP_BWE_main/requirements.txt\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/AP_BWE_main/README.md"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"beac528f5100aa1fb24b010fad03b0da99651a086c036bcb1bcc6c3c39b94ca4"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: tools/AP_BWE_main/README.md links to \u0060VCTK-Corpus-0.92\u0060, but \u0060tools/AP_BWE_main/VCTK-Corpus-0.92\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/AP_BWE_main/README.md"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3eb02beac896e1beb00664972640d7f589336bb237d9a83e47540fcd2e2627"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: tools/AP_BWE_main/README.md links to \u0060VCTK-Corpus-0.92/training.txt\u0060, but \u0060tools/AP_BWE_main/VCTK-Corpus-0.92/training.txt\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/AP_BWE_main/README.md"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9e7e3ff584818866aacd901bdb0e0316a34ca4d5602246f383d23e78cb6f9d"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: tools/AP_BWE_main/README.md links to \u0060VCTK-Corpus-0.92/test.txt\u0060, but \u0060tools/AP_BWE_main/VCTK-Corpus-0.92/test.txt\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/AP_BWE_main/README.md"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7913cef58fcacaffc5128ccd8a06e448fe973692b749faf416039a8a7d82d9f3"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: tools/AP_BWE_main/README.md links to \u0060Figures/model.png\u0060, but \u0060tools/AP_BWE_main/Figures/model.png\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/AP_BWE_main/README.md"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"72833754ecd92056fde14d4b3034d319caf08dc7b1c9285b59ac0572cc4e8b85"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\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":"GPT_SoVITS/text/g2pw/onnx_api.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3823fabfb6c644a846868016e6672f9e5a37bc772beb119c026a7e65902878"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022\uFF01\u0022 in sovits_path or \u0022!\u0022 in sovits_path\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/inference_webui.py, GPT_SoVITS/inference_webui_fast.py. 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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a8e121708c9bea63b387e0a2edcc2f50945a227683f7bcf8f64258637317d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cfg.enabled and str(getattr(vq_model, \u0022version\u0022, \u0022\u0022)) == \u0022v5turbo\u0022 and not cfg.force\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/inference_webui.py, api.py. 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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca94eb3190625c4d0215110a7cdebbecda7ce154a380bd2c4559291d381a297"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cfm is None or not hasattr(cfm, \u0022set_dbcache\u0022)\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/TTS_infer_pack/TTS.py, GPT_SoVITS/inference_webui.py, api.py. 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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad6241e081381ba258429aea2f52d469cfcf369723c84a1ab3968b3ad00940c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060char == \u0022.\u0022 and i \u003E 0 and i \u003C len(inp) - 1 and inp[i - 1].isdigit() and inp[i \u002B 1].isdigit()\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py, GPT_SoVITS/inference_webui.py. 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":"GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"2472cb80eb31cb0d5b3c94083d3d603c0cc4b3955a8eb996442ef9a1931f4657"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060early_stop_num != -1 and (y.shape[1] - prefix_len) \u003E early_stop_num\u0060 appears character-identically in 4 files \u2014 GPT_SoVITS/AR/models/t2s_model.py, GPT_SoVITS/AR/models/t2s_model_onnx.py, GPT_SoVITS/export_torch_script.py, GPT_SoVITS/onnx_export.py. 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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab09fc78ae8ac44b221966460d634f0ebaa120626e864bd63bc92150c63e532"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060epoch % hps.train.save_every_epoch == 0 and rank == 0\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/s2_train.py, GPT_SoVITS/s2_train_v3.py, GPT_SoVITS/s2_train_v3_lora.py. 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":"GPT_SoVITS/s2_train.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"2727104c9d07dfa156f029002f483052f97953c8e2b2d93632870e80443adaef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060eval(os.environ.get(\u0022is_half\u0022, \u0022True\u0022)) and torch.cuda.is_available()\u0060 appears character-identically in 6 files \u2014 GPT_SoVITS/inference_webui.py, GPT_SoVITS/inference_webui_fast.py, GPT_SoVITS/prepare_datasets/1-get-text.py, GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py. 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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eeea7c7caa7c0b5188e052ad22bf3a92312c0f86de5e6d75b6c865ea4a4e165"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hps.train.pretrained_s2G != \u0022\u0022 and hps.train.pretrained_s2G != None and os.path.exists(hps.train.pretrained_s2G)\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/s2_train.py, GPT_SoVITS/s2_train_v3.py, GPT_SoVITS/s2_train_v3_lora.py. 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":"GPT_SoVITS/s2_train.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"422d4f2727791a6c7b3adc4618757af0681d427de4ca99c88412458a0c764a1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060if_lora_v3 == True and is_exist == False\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/inference_webui.py, GPT_SoVITS/inference_webui_fast.py, api.py. 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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"8308558a312cc10aa679fe6b668f2f2f41f8b9ecd0408058f02276b69128fcbf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inp_wav_dir != \u0022\u0022 and inp_wav_dir != None\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py, GPT_SoVITS/prepare_datasets/2-get-sv.py. 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":"GPT_SoVITS/prepare_datasets/2-get-hubert-wav32k.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda7439c28688b3ecb0ae679eac4c9b334535dd083405d70b38bbe84b2ffc753"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mono and audio.dim() == 2 and audio.shape[0] \u003E 1\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/TTS_infer_pack/TTS.py, GPT_SoVITS/inference_webui.py. 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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3983aa0185425636fa2a7d474a014a4417b20bc2e7c79de0a2cb0c754b6a4e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self.bound_sessions and not self.waiting_bind\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/Accel/MLX/AR/runner_mlx.py, GPT_SoVITS/Accel/PyTorch/AR/runner.py. 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d7aef17e365d5f9831e65ef77a8cffdec00ac2f26c6ec61200a5f5f38a1bc6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060previous_tokens is not None and repetition_penalty != 1.0\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/AR/models/t2s_model_onnx.py, GPT_SoVITS/AR/models/utils.py, GPT_SoVITS/export_torch_script.py. 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":"GPT_SoVITS/AR/models/t2s_model_onnx.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"50003775aeb9a8e53b8cff4ad6f602aa6afe105b373bbed9e058f081066c0eee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prompt_language is not None and text_language is not None\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/inference_webui.py, GPT_SoVITS/inference_webui_fast.py. 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":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f87005c83771b5960abaa3645636ee65ee3eb1b0a2420ccc9bfc509b42b8220"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060query.is_nested or key.is_nested or value.is_nested\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/AR/modules/activation.py, GPT_SoVITS/AR/modules/activation_onnx.py. 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":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1799176acaa46279d5567ce3c5dd7dd3385c18870528139160081e62a1aaac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rank == 0 and hps.train.if_save_every_weights == True\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/s2_train.py, GPT_SoVITS/s2_train_v3.py, GPT_SoVITS/s2_train_v3_lora.py. 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":"GPT_SoVITS/s2_train.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc318caa79f013834806921f8857550780c489e180b7fc8927e7c0b0a2a7f60d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.result or T2SResult( status=\u0022Error\u0022, exception=response.exception, request_id=request.request_id, )\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py, GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py. 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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f437b2f06eda6a0211e747d1537c645d8dd182de7278b5f11f5b3774f4f9880"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._loop_thread is None or not self._loop_thread.is_alive()\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py, GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py. 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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a633837927f9b805aa449a668dae9bd385b328eeec33df54bbe8451dcccbb5a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.kdim == embed_dim and self.vdim == embed_dim\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/AR/modules/activation.py, GPT_SoVITS/AR/modules/activation_onnx.py. 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":"GPT_SoVITS/AR/modules/activation.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bceb283597152c76f81f0648a969eace72e885816e39a3ff0031fa58329242"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.waiting_bind and self.free_slots() \u003E 0\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/Accel/MLX/AR/runner_mlx.py, GPT_SoVITS/Accel/PyTorch/AR/runner.py. 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0e878a1b3a9669fe25186bd07c069ef4d78bf88f4ff6de83428ec612a4aa73"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.waiting_bind and self.free_slots() \u003E= self.waiting_bind[0].bsz\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/Accel/MLX/AR/runner_mlx.py, GPT_SoVITS/Accel/PyTorch/AR/runner.py. 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":"GPT_SoVITS/Accel/MLX/AR/runner_mlx.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c835be093f4c7242a3a399b528ef583bd3dbe1c05d40deeec533bb324410212"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session.progress_task is not None and session.progress is not None\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py, GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py. 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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9117458905ec12d40bfcf39589e6e1442e95371ba0c1bca2f8927f44dfb57d08"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session.step_count == 0 or session.step_count - session.last_stream_step \u003C session.stream_interval\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py, GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py. 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":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"0237f854cf061685607b97481a7c85786d82a7c55fc2584eacfabf3e06b8acd3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060target.ndim == 4 and target.shape[1] == self.num_stems\u0060 appears character-identically in 2 files \u2014 tools/uvr5/bs_roformer/bs_roformer.py, tools/uvr5/bs_roformer/mel_band_roformer.py. 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":"tools/uvr5/bs_roformer/bs_roformer.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5aa35882a3b92e6f87f9ef37b9e56c6de742d5cb8698097a849416d597ed24d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tmp[\u0022lang\u0022] != \u0022en\u0022 and langlist[-1] != \u0022en\u0022\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py, GPT_SoVITS/inference_webui.py, api.py. 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":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0924a191a39d860b4e5a867eaa5744b4a6d7983fb309bdfda5517b5e18b666ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tmp[\u0022lang\u0022] == \u0022en\u0022 and langlist[-1] == \u0022en\u0022\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py, GPT_SoVITS/inference_webui.py, api.py. 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":"GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c57a063dfa648f9834cef90b4fe1b1b05e983d45d28294a934dc96dcfb23d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060torch.argmax(logits, dim=-1)[0] == self.EOS or samples[0, 0] == self.EOS\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/AR/models/t2s_model.py, GPT_SoVITS/AR/models/t2s_model_onnx.py, GPT_SoVITS/export_torch_script.py. 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":"GPT_SoVITS/AR/models/t2s_model.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a316059de9034fe49b946134b528c8eb0bfeaa61dda7aabe7dc450a7cc9c84a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060torch.cuda.is_available() and n_gpus \u003E 1\u0060 appears character-identically in 3 files \u2014 GPT_SoVITS/s2_train.py, GPT_SoVITS/s2_train_v3.py, GPT_SoVITS/s2_train_v3_lora.py. 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":"GPT_SoVITS/s2_train.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"36019fca5d2a84d97e8b4497fdd099a65733e5f3a1d5ecd5e4767b5489771678"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060wav16k.shape[-1] \u003E 160000 or wav16k.shape[-1] \u003C 48000\u0060 appears character-identically in 2 files \u2014 GPT_SoVITS/TTS_infer_pack/TTS.py, GPT_SoVITS/inference_webui.py. 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":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"90610a89cdd1bd2108ecaf40d1c4d951f0be027071008ef3a478022315fd70e4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"54de3228f3c460774ed0232f4713bd6053941e0a4f3318995cdf693aab71c8bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49b44e1f41d08cee4b573a7a00212a3032d0fd9f9246a52425daf2641a0dc3a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"464f2201d3e9d80e8da33e172bfcfe255a6ffa4c59655b1c64df7a62b81727d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"c503b2a26d92673dcb31a7575bbb54ae08a5b2d9bb9d9d01593b77d49c744a3d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api_v2.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a18a3682c7d35458bff42793608ec023ca294628e4618b0a04003daa57fb9f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4ef6ea27a332ef89dd9ba5afcab793c02ceadba5ea5925fc4ea3c066406c16"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e06d53c479c0bc836bfdcec4ddc9bc910d2291d80a47c84241c7852862697a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4234973fdf4073cc477b3010a1ca20106ed2547e508ef167e5217ca5d1fa32"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"57518b55bb3e7089f9f57fc57190bf89c667e3b3579f26391a05ba00e61bc6d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b23b3a1d26bb23068928161b4a89487c6cb073b61a20db6ce2e5c5be07fdb2c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"4521ba9cf287eb7da2343ebf2ac8aca3d9d91e2cea49a2eab66505efa497f44f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/inference_webui.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b766ca6408b92f5c462751b52a70ee69c86fbb58ef363a155cb45feb65785c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/onnx_export.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"970f3b55574ae0f4fe2ccbd0a0fef6a3f84ed286c7af24547ad3a64153252aef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/onnx_export.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe1d47d63410598bf3db1ec63124b914dcfe66736f0de61617f033f66854fc2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s1_train.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35d04c1e402efd1d28e46b80ca072dee313c9f0a9cbe15b99f9a9e83c093df2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s1_train.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc7c1f8830da2b8829fdf09787bdac41e05f9680060c3acd3919ba087aa16f7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/s2_train.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f03f99eb2dc7a8f3a4fe8955e93f1601f45ab8e4a5010b46136bd987a9631f5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/text/g2pw/onnx_api.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cf95cfe1d10e1abecbe4158593fee5b084918798a1a8750ba9bb1c78bf6200"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f4daebc9b7b4c22eea8e2506a86926462efb20c228194036495ceec69b5161"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/TTS_infer_pack/TTS.py"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a69e8758b0f4aa83c271bbdef4c7dc0a01821d539e044cbcad71cd8a81cbda6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/PyTorch/AR/t2s_engine.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"e106c20e04291253b25d25a728cdc8b2806722cce3dba95d5f21e269eb774057"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/Accel/MLX/AR/t2s_engine_mlx.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24934d7f00c263524103e06c78d22cf7f11b44c576bafe6fe99ca916f177596"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/utils/__init__.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b957f256aa8d0d865a780db7e4a117541f336d5c41f4d28de17a604278676c95"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 437 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff3407bc5f86710c0f051fe20d76cbc812bdbe8842c15ad25093b9337386f56"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1139 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e901aacea41abf374f4274a302477dc6bd587852a10eb008e0772268cd21d120"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1140 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5530c317067e668200c552e9880e25199117f3b9ce62aa58912099ac881f4fab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1141 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a69ed01ed95dd60da80d36cbb7c5be9f7bed9e7e465ec141097c31fc37bde42"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1142 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddabac8773cc6e1fb7a907064c432fc47b1f3ef950748c2ceee032fbf52f38b9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1292 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbc2bd59045052f4e4dc73aca43cc0cf2ea643cdcfe33a7c499a77f0c5998b1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1295 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1e36acf54a26d6ddc478f8fe011244257ad234da019e001a483504c0a2626f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1302 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c4dfa4ccf06479cab80ba9be51a7e769ec16093cbd672abb60100b2802f96c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1303 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"c065f2b4d554dc4383900364219a82cc49b374988237500c0d8bf451c041e692"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1304 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a060d607069128bacafb01c929ad6f426b470bc530003fd95b0d1ede2ee472c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1314 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"714d67015e21c9b38a8e02562390d9523c30b31e6ab7234b89cf0a91d40b81f5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1330 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.py"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"99956715944a4c2c593e5f1a5726a01d68aabd0e599ca284f70f5e2a65fcc449"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 607 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4abffd2ed1a6f808c1ec0a44caabbf57d97ab5476677d36e123abe18a9bd5b9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 617 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f29fd0b191d4a312818849de9097d1022fb0c02c82f6fdd57a977e43234342"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 633 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/export_torch_script_v3v4.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de18c3f7b92f1b4527c47b1c0df10e2740ebec0c094f5845a9ca61f165fd8ea"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 258 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/utils.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e4f1836e6f3c0a53385c2cd9c53e3ac80f7d9734c4fe7aab7355ae0e06d31d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 339 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/optim.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"43679aad47a70e4de4598a5aeeea7174e5ebc2a1bb2e03c17fac0664d1521e49"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 357 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/optim.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff38211a69d0b810dc4b1fbf0e296d90fc8629cba5f16e0774de9a22c96d181"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 417 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/modules/optim.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e96302d831d29ce4a0f23f52f66594f0697e7fe034db8e5113c6eb419310a12"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060check_txt_file\u0060 swallows every exception into \u0060return False\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GPT_SoVITS/AR/utils/__init__.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54acff7a690ade0626b0c4ac0f7a428dedf0fe81ed993f0e2d07217267de3c6"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-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":77,"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."]}]}