{"$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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"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":"offline_inference.main (cyclomatic 37): offline_inference.main has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/offline_inference.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b5d86e0bd92e3b4f6626410ea267a496ab880b60cbe6042d0ce02bb8ad4564"}},{"ruleId":"D1","level":"warning","message":{"text":"client_grpc.main (cyclomatic 34): client_grpc.main has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/client_grpc.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21ee16b22f6535581c384a9a499b197bad825990cede4bea63f546d78357158"}},{"ruleId":"D1","level":"warning","message":{"text":"infer_cosyvoice3.main (cyclomatic 28): infer_cosyvoice3.main has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8b3fb6914fee4549b9f3677f2515c7083f225a801f048e1a0468abd0ea7960"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen2LM.inference_bistream (cyclomatic 27): Qwen2LM.inference_bistream 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":"cosyvoice/llm/llm.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"551afbb12e2b3ca7150d8105b4b3731aae6d5fa314011a22214f709eca071b74"}},{"ruleId":"D1","level":"warning","message":{"text":"webui.generate_audio (cyclomatic 27): webui.generate_audio 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":"webui.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f5cd548b077d543394c998500a9afc703e70900061c2a4c7ba756618f1412a"}},{"ruleId":"D1","level":"warning","message":{"text":"TritonPythonModel._process_request_streaming (cyclomatic 19): TritonPythonModel._process_request_streaming 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":"runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"322934a06d888d4c3c567bb1a219b58e967457f15b04d69f2752c915a8e4b8c3"}},{"ruleId":"D1","level":"warning","message":{"text":"train_utils.init_optimizer_and_scheduler (cyclomatic 18): train_utils.init_optimizer_and_scheduler has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/utils/train_utils.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c8f35e3d426454e34fa5233b2ef8fc796f95a6305a2ce0e6a413befb5297e9"}},{"ruleId":"D1","level":"warning","message":{"text":"TritonPythonModel.execute (cyclomatic 18): TritonPythonModel.execute 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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb22c4f2a6b2f5c1e67efb6c8072b017e05a83c08272b7c8808d60c43661c95b"}},{"ruleId":"D1","level":"warning","message":{"text":"client_grpc.subtract_stats (cyclomatic 17): client_grpc.subtract_stats 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":"runtime/triton_trtllm/client_grpc.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"769adb2bcba1fc5d1ccbf998c2fd86af4ddb75b3463373ebe907942278bae003"}},{"ruleId":"D1","level":"warning","message":{"text":"train.main (cyclomatic 16): train.main has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/bin/train.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"51dd1a3f9ef73f463dfb5eea3bf1fea13c1513f47dc951e0bcd488f13acee427"}},{"ruleId":"D1","level":"warning","message":{"text":"frontend_utils.split_paragraph (cyclomatic 16): frontend_utils.split_paragraph has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/utils/frontend_utils.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed1527adcdd04b882ace4102d6d8a458b36b5e754718b0d463f08d465447f7d"}},{"ruleId":"D2","level":"warning","message":{"text":"offline_inference.main (cognitive 105): offline_inference.main has cognitive complexity 105 (threshold 15). Drivers by points: if/else 24 (56 pts), loops 9 (31 pts), ternaries 5 (18 pts) (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/offline_inference.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"be76a0fe93906776eb085c31881bb70921764dcae21ed94045fd81d9048acebb"}},{"ruleId":"D2","level":"warning","message":{"text":"infer_cosyvoice3.main (cognitive 82): infer_cosyvoice3.main has cognitive complexity 82 (threshold 15). Drivers by points: if/else 13 (35 pts), loops 9 (31 pts), ternaries 3 (16 pts) (nesting depth added 57). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1983640a44d59ebbdc4adc4178ae3b4141d7ef717f3acf76ae1667a749d1f45e"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2LM.inference_bistream (cognitive 68): Qwen2LM.inference_bistream has cognitive complexity 68 (threshold 15). Drivers by points: if/else 22 (50 pts), loops 4 (7 pts), ternaries 2 (6 pts), boolean chains 5 (nesting depth added 35). 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":"cosyvoice/llm/llm.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"debdcb859692446ca38aa2b194f1c8f05615515c4dc314787391d1f6bf8a750c"}},{"ruleId":"D2","level":"warning","message":{"text":"client_grpc.main (cognitive 61): client_grpc.main has cognitive complexity 61 (threshold 15). Drivers by points: if/else 28 (45 pts), ternaries 2 (6 pts), error handling 3 (4 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/client_grpc.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef3ca602f822f799e81688cb6485fd34a03d9cfb078360548e5ac42c9a4eda4"}},{"ruleId":"D2","level":"warning","message":{"text":"client_grpc.subtract_stats (cognitive 56): client_grpc.subtract_stats has cognitive complexity 56 (threshold 15). Drivers by points: if/else 8 (37 pts), loops 4 (15 pts), boolean chains 4 (nesting depth added 40). 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":"runtime/triton_trtllm/client_grpc.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"14648258ea11b3016bf7b8459bac4e64e60e626727ca445253a4c3cad698c780"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonPythonModel.execute (cognitive 53): TritonPythonModel.execute has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (46 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 34). 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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc3d0708dbb0e38e8ae0a0acf95bec83bdcde6458c90e3119238937ae653610"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonPythonModel._process_request_streaming (cognitive 45): TritonPythonModel._process_request_streaming has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 2 (3 pts), boolean chains 1, error handling 1 (nesting depth added 26). 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":"runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5e1163ed211110c00f9750f75a4a47f2fb66bb002ece0558b4d6f607622b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonPythonModel._process_request (cognitive 44): TritonPythonModel._process_request has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (38 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 30). 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":"runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e3000f2af53040db5b24bcd23f042bc7e8ca32517888dc5faa75bcf75e437e"}},{"ruleId":"D2","level":"warning","message":{"text":"webui.generate_audio (cognitive 39): webui.generate_audio has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (29 pts), loops 4 (8 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":"webui.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"371b152c01a4cdb603599fcf49b2f9de0ac0f1195326e0d4ec189d85cc5385da"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2LM.inference_wrapper (cognitive 30): Qwen2LM.inference_wrapper has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 3 (8 pts), ternaries 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/llm/llm.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29fa6c993650df6df3ccf430cfe35b018c312c19c7a39a8d5fa28e2d8ff36d9"}},{"ruleId":"D2","level":"warning","message":{"text":"client_grpc.run_sync_streaming_inference (cognitive 28): client_grpc.run_sync_streaming_inference has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 2 (5 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":"runtime/triton_trtllm/client_grpc.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"7826d94f452a74fec32068968db8c0e350687ac8a5443ced0c934767529feb42"}},{"ruleId":"D2","level":"warning","message":{"text":"frontend_utils.split_paragraph (cognitive 27): frontend_utils.split_paragraph has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 3, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/utils/frontend_utils.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc123e507818e603a23f676a1c13abc0528bf783f96aa2bde74a46cfe3cc6b8"}},{"ruleId":"D2","level":"warning","message":{"text":"train.main (cognitive 24): train.main has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (21 pts), ternaries 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/bin/train.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"118893c5b479b8e90d5cbc4734c28aab292f9deed23e2b616c5b44c9dd075af9"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonPythonModel.forward_llm_async (cognitive 24): TritonPythonModel.forward_llm_async has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (6 pts), error handling 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"32401e28d8be00977eb8f30f49c8ac9de3c603ab7c2aa54f28dc197bcd60b947"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonPythonModel.forward_llm_streaming (cognitive 24): TritonPythonModel.forward_llm_streaming has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (6 pts), error handling 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd428ad86b8ff4e84207054ebfa69e9048325474b273b7de1679fb169794b85"}},{"ruleId":"D2","level":"warning","message":{"text":"processor.filter (cognitive 23): processor.filter has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 2, 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":"cosyvoice/dataset/processor.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"944987504b23992ff80287c449a20ca5a954a087b2e85a14609536bad54703a6"}},{"ruleId":"D2","level":"warning","message":{"text":"train_utils.init_optimizer_and_scheduler (cognitive 22): train_utils.init_optimizer_and_scheduler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (22 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/utils/train_utils.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef35bf76d99b974e2e463a198eddca6a0aa7b2849e6704802330e0e4084689a"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonPythonModel.execute (cognitive 21): TritonPythonModel.execute has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40320d2d99ef580c70c3a3335b82a3ca1bc92217e484d9c5cb16dc9433a0d12"}},{"ruleId":"D2","level":"warning","message":{"text":"average_model.main (cognitive 20): average_model.main has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/bin/average_model.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4761a6cc578e25d05a3cde7b5d4a4436477ed9b2a653637f97cf848bb8c0c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"CausalConditionalDecoder.forward (cognitive 20): CausalConditionalDecoder.forward has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 6 (9 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/decoder.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8da7bb24785b012e64fffc0f27d21562135bde0250846e800001c1492e7e40f"}},{"ruleId":"D2","level":"warning","message":{"text":"CosyVoice2Model.tts (cognitive 17): CosyVoice2Model.tts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/cli/model.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"84616878cc786f03c48524f7359d10e4fb85a003d6917ed2fe7f713ccdfeab42"}},{"ruleId":"D2","level":"warning","message":{"text":"train_utils.log_per_step (cognitive 17): train_utils.log_per_step has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (8 pts), if/else 4 (6 pts), boolean chains 3 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/utils/train_utils.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ef377b1675c8650e71297c1a6374d71d75ce037497df17f1c18e58bce635a3"}},{"ruleId":"D2","level":"warning","message":{"text":"offline_inference.data_collator (cognitive 17): offline_inference.data_collator has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (6 pts), ternaries 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":"runtime/triton_trtllm/offline_inference.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9c0c09bc8784416919306e8d71dfd0b72e17750735fa55a0e3fb8dbbc0f672"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2LM.prepare_lm_input_target (cognitive 16): Qwen2LM.prepare_lm_input_target has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/llm/llm.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"68480134ca31a1b34991ae8a88e84d158fc6edb05b3441b775092e4acdc40c2c"}},{"ruleId":"D2","level":"warning","message":{"text":"client_grpc.send_streaming (cognitive 16): client_grpc.send_streaming has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 4 (6 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/client_grpc.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"347dacb580a5a831fb3190e91e786fc655bc30b6a32936ce68439b82335ad3cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: triton_trtllm/client_grpc.py: FileTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 165 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/client_grpc.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3be5369b1268bcfbfda0c0790cd35bea7ef48f0f53933a99bc611c4816626fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llm/llm.py: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 59 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/llm/llm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5725d73ab13d76100ebb0ee97c3ed84ba4533b031281e0aeeee88b0557d8928"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: triton_trtllm/offline_inference.py: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/offline_inference.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"371a2d499e12d538b911df90af87ecd77ccc108ef5f1cba412933bedbbc462d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (162 shared lines): runtime/triton_trtllm/infer_cosyvoice3.py:220-496 | runtime/triton_trtllm/offline_inference.py:326-636 \u2014 These two members are variants of one another: 162 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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7552fd1aac12b7a8bf78ea12e36758d33921965b9c7298fbe2850293ff11e3a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (61 shared lines): cosyvoice/flow/decoder.py:101-194 | cosyvoice/flow/decoder.py:309-403 \u2014 These two members are variants of one another: 61 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/decoder.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"726cd1aaec73316d7032fb42f8f9822d8fce5d7623d73c12a0efb1a1e9b74b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): cosyvoice/flow/flow.py:191-233 | cosyvoice/flow/flow.py:325-367 \u2014 These two members are variants of one another: 35 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/flow.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"79795293aa3c9e5e31bb7056d454dff2164ac3629e3d6215cd90f996a8cdb1d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): cosyvoice/hifigan/generator.py:403-475 | cosyvoice/hifigan/generator.py:598-670 \u2014 These two members are variants of one another: 35 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/hifigan/generator.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf08eeb212e489604711addc119e65e60674afc55619a6c15c3ab193853c231"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (21 shared lines): cosyvoice/cli/cosyvoice.py:142-175 | cosyvoice/cli/cosyvoice.py:192-225 \u2014 These two members are variants of one another: 21 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":"cosyvoice/cli/cosyvoice.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"db69ff13d79695cd1367c588d2dd0a373e7caa08d0f77d537d7013837e7574e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): cosyvoice/llm/llm.py:473-502 | cosyvoice/llm/llm.py:565-661 \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":"cosyvoice/llm/llm.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4095aa6cb8bbad8c63dba1b06bd0844cd79486669579458252999e4022917352"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): cosyvoice/cli/cosyvoice.py:81-89 | cosyvoice/cli/cosyvoice.py:92-103 | cosyvoice/cli/cosyvoice.py:106-114 | cosyvoice/cli/cosyvoice.py:117-127 | cosyvoice/cli/cosyvoice.py:130-136 | cosyvoice/cli/cosyvoice.py:178-186 \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":"cosyvoice/cli/cosyvoice.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1155b961576183d1d969aeb789fe9482af1425004a0c263d907c74fba3f26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): cosyvoice/cli/model.py:84-92 | runtime/triton_trtllm/model_repo/token2wav/1/model.py:109-117 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:222-235 | runtime/triton_trtllm/token2wav.py:174-183 | runtime/triton_trtllm/token2wav_cosyvoice3.py:141-160 | runtime/triton_trtllm/token2wav_dit.py:222-235 \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":"cosyvoice/cli/model.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c114331a2c6e46e96d80d1e542100fa99a3171bf960529c5585d779320510f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): cosyvoice/utils/file_utils.py:54-88 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:50-92 | runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:35-70 | runtime/triton_trtllm/token2wav.py:37-71 | runtime/triton_trtllm/token2wav_cosyvoice3.py:32-70 | runtime/triton_trtllm/token2wav_dit.py:50-92 \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":"cosyvoice/utils/file_utils.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5748d8b444ba976b5a59db47dd1138bcb0da9125ae2f4106bba1eb8bf1c67a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:92-125 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:176-202 | runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py:92-125 | runtime/triton_trtllm/token2wav.py:128-154 | runtime/triton_trtllm/token2wav_cosyvoice3.py:194-217 | runtime/triton_trtllm/token2wav_dit.py:176-202 \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":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c1b82b6e142d4c5bfde34d2d967ebbe34d172386adf47c62c53be942549cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:97-105 | runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:18-25 | runtime/triton_trtllm/token2wav.py:76-84 | runtime/triton_trtllm/token2wav_cosyvoice3.py:75-83 | runtime/triton_trtllm/token2wav_dit.py:97-105 \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f5c219d73ff0ec3d3ce43f924588c51134f7d1f12e165f8a22a0cdae0e1d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): cosyvoice/cli/model.py:136-173 | cosyvoice/cli/model.py:293-326 | cosyvoice/cli/model.py:426-450 | runtime/triton_trtllm/model_repo/token2wav/1/model.py:127-160 \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":"cosyvoice/cli/model.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74277375e729612be6aa3ad7fffb46bc0e09adc882cba9a9584e4a60f3f75c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:75-82 | runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py:75-82 | runtime/triton_trtllm/token2wav.py:157-164 | runtime/triton_trtllm/token2wav_cosyvoice3.py:174-183 \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":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f8864d4d458d8f7ebebf2b66dc47133ca1ecce687c375667b0d9348e6fb8dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:116-173 | runtime/triton_trtllm/token2wav.py:95-125 | runtime/triton_trtllm/token2wav_cosyvoice3.py:94-138 | runtime/triton_trtllm/token2wav_dit.py:116-173 \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f52a7ecce9f26f706cf945bda2f1a1a07afdf8cf32c2f914c6c72924ee37794"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:265-277 | runtime/triton_trtllm/token2wav.py:194-206 | runtime/triton_trtllm/token2wav_cosyvoice3.py:220-232 | runtime/triton_trtllm/token2wav_dit.py:265-277 \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23fd4537e5f16c8578fe6a1198aa2465903a419d76aaf752244661c91b28378"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:280-291 | runtime/triton_trtllm/token2wav.py:209-218 | runtime/triton_trtllm/token2wav_cosyvoice3.py:235-243 | runtime/triton_trtllm/token2wav_dit.py:280-291 \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7134c99e0da4ecd295fed257abed2eb4a74ae385a4e2ef9fa9b33b2e46921ca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:294-309 | runtime/triton_trtllm/token2wav.py:221-234 | runtime/triton_trtllm/token2wav_cosyvoice3.py:246-261 | runtime/triton_trtllm/token2wav_dit.py:294-309 \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"805825e2006e21cec911f212a0006914e47eda9664bff624f0ab92c9280da5c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:466-474 | runtime/triton_trtllm/streaming_inference.py:14-25 | runtime/triton_trtllm/token2wav.py:288-296 | runtime/triton_trtllm/token2wav_dit.py:466-474 \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d69581cb99462e583eded556b671c6f1c1bf40df87da2aa9fe1180d4e2eeac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:478-485 | runtime/triton_trtllm/streaming_inference.py:29-37 | runtime/triton_trtllm/token2wav.py:300-307 | runtime/triton_trtllm/token2wav_dit.py:478-485 \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea4bc9b412822cb6664e614d902132bae5aaf17b6571e8fa2970ce818d37827"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): cosyvoice/flow/decoder.py:211-291 | cosyvoice/flow/decoder.py:406-494 \u2014 These two members are one piece of code written twice and then edited apart: 81 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/decoder.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c67ca6b6277270921ded81da7ea79f57aeb9059928516f92331fbdadbc1724"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): cosyvoice/cli/model.py:181-242 | cosyvoice/cli/model.py:334-394 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/cli/model.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2928167dd4237001d48ce706416b1811e4ef3e334b574a3588ce2441c7a8a437"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): cosyvoice/utils/executor.py:38-86 | cosyvoice/utils/executor.py:90-144 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/utils/executor.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"746e7b0e2fd0f4e42bfab50d63ef0ae3feb4ec58735c74c3898fa905c3ed8c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 73\u002B corresponding lines): runtime/triton_trtllm/client_grpc.py:218-341 | runtime/triton_trtllm/infer_cosyvoice3.py:88-160 | runtime/triton_trtllm/offline_inference.py:104-206 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 73 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":"runtime/triton_trtllm/client_grpc.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb2d57c1eaed34f13b4c0badae26136997629b2e957a5c68e6ee0a67f182a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): cosyvoice/flow/flow.py:112-146 | cosyvoice/flow/flow.py:246-281 | cosyvoice/flow/flow.py:380-414 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/flow.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b56957fe03a75179f9444d6ebf2874d924a92dea44a6b02804d59f26419cac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:122-179 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:85-137 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef6122823779efdb450ce46a1427b4205ec21866b60ff83628930874ba290dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): example.py:8-33 | example.py:37-68 | example.py:72-102 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"009fc0d145369f46da2e1edda2ebdb24a9ad1453ac709e57d2c543ff13f1914c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py:61-97 | runtime/triton_trtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py:61-90 \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":"runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c29df7602ed3c7864f6d6b1a610c61cf9de2f01bb3be7530016c87ebd4d259e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:316-332 | runtime/triton_trtllm/token2wav_dit.py:316-332 \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f38f0f2040e604a5ccebce0052712b683d04eadf63d1a9937f3205fcea2fcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): cosyvoice/llm/llm.py:269-300 | cosyvoice/llm/llm.py:676-706 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/llm/llm.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ec0534ab2b0588358b8b2367715b0740c2df795845dd70ebe4bc3e1076ac0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:56-87 | runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:78-106 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e700714e9685fd263c15d08b7fa52f79831a2a91f90c345d8cb459c9e7073b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): cosyvoice/hifigan/f0_predictor.py:29-54 | cosyvoice/hifigan/f0_predictor.py:68-93 \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":"cosyvoice/hifigan/f0_predictor.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6cd20b011f13b8bec6fb7556e870c5dd0edcb80c5b2c196c6a3d0a50bcf161"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:82-107 | runtime/triton_trtllm/model_repo_cosyvoice3/vocoder/1/model.py:24-45 \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":"runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"227e49605ed369efdc797bef3906994e2ebb069f4ee11bb187ffc1d51738f38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:240-276 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:233-251 \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":"runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ee98c12c8bd889e95e472441bb78b1f72a85d0b74d11e6f8eaf8847a7b806f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:205-212 | runtime/triton_trtllm/token2wav_dit.py:205-212 \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6d1723e998ef63dd40e66050dadabfcfd6db1e1a8643bd91155c77bd252a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): cosyvoice/transformer/subsampling.py:185-200 | cosyvoice/transformer/subsampling.py:241-254 | cosyvoice/transformer/subsampling.py:294-309 \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":"cosyvoice/transformer/subsampling.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ec8106fc18ac611ad76f7e6d5db509dd7e0d3136d44ff9a59f67c63f1555b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): cosyvoice/cli/frontend.py:109-118 | cosyvoice/utils/onnx.py:37-47 \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":"cosyvoice/cli/frontend.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2dc28645b323058b579531cf01885b319a46a374c790f7bcf26feff323f74c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:53-67 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:26-36 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abaa5b84aadb2248d8a6374257191c03cfdd184fb9836fa9fb0a5dd65801447"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): cosyvoice/flow/flow.py:42-56 | cosyvoice/flow/flow.py:167-184 | cosyvoice/flow/flow.py:302-318 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/flow.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e7c87334fab2d14394737f0a9f43a1889f00886f4984b62ba9efd8bb6b89a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): cosyvoice/transformer/subsampling.py:208-227 | cosyvoice/transformer/subsampling.py:262-279 | cosyvoice/transformer/subsampling.py:317-335 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/transformer/subsampling.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10aed1fb79230738f1a9bfe6497efc4f4dfaf9e567106a44be836d511fe89ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:202-224 | runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:208-230 \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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f986f22e0951e2dba95910cc8184c3413b806bdd10ee174598372ab6e1039bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:176-199 | runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:182-205 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:168-179 \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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7aa77b13df20b06135081ed6a06955f3ade125554c03a569be2bbd46422d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:128-153 | runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py:128-146 \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":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"891f50bf7534a08ccc0ab7ae33949d88e3baedf83f1d889fc724a3138db9e16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): cosyvoice/utils/scheduler.py:258-279 | cosyvoice/utils/scheduler.py:341-363 \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":"cosyvoice/utils/scheduler.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c00ad2f70721efffd590fb91412bbd9e6e3cc64cec91683ccd28266e00370b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): cosyvoice/utils/scheduler.py:92-108 | cosyvoice/utils/scheduler.py:155-173 | cosyvoice/utils/scheduler.py:569-586 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/utils/scheduler.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d78b5ef7dc317ae0cbb2e7d73ad3c24e6dd737ca933f5a895578539a791f157"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): cosyvoice/transformer/convolution.py:215-221 | cosyvoice/transformer/convolution.py:249-258 \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":"cosyvoice/transformer/convolution.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0657a54392a1dd381d0b7fe0ef425dcec4b5e0302982850eb6b36becdf0d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): cosyvoice/flow/DiT/modules.py:91-98 | cosyvoice/flow/DiT/modules.py:117-127 \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":"cosyvoice/flow/DiT/modules.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcb1db9f4dfebf7a7758a912278db677645a860611f77dac4f7642defd39a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): cosyvoice/hifigan/discriminator.py:62-75 | cosyvoice/hifigan/discriminator.py:164-176 \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":"cosyvoice/hifigan/discriminator.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"548b9edcc7a461a5bfbbd2db79322629d1a55a88b2003ab3f45814fdb6eaac83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): cosyvoice/transformer/subsampling.py:81-90 | cosyvoice/transformer/subsampling.py:350-360 \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":"cosyvoice/transformer/subsampling.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c29398b9cb708171bb0c580b1dacf08e2b51f141cc60b152243acd470dddac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): cosyvoice/transformer/decoder_layer.py:50-60 | cosyvoice/transformer/encoder_layer.py:48-56 \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":"cosyvoice/transformer/decoder_layer.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7bce6d3030712e32b9ddc4d12063dc2023aae63783f661cbde5f3e99a92f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): cosyvoice/utils/scheduler.py:111-126 | cosyvoice/utils/scheduler.py:176-191 \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":"cosyvoice/utils/scheduler.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"20868915872482b5c3df4b8b06423800425d47a4e4e79ce4d080cfd2d115a24d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): vllm_example.py:13-19 | vllm_example.py:23-30 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vllm_example.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0383236ed4f63090767534a545bea95480e583c05cef532742c44969ceed911a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): cosyvoice/flow/DiT/modules.py:240-244 | cosyvoice/flow/DiT/modules.py:261-265 \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":"cosyvoice/flow/DiT/modules.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"e123d6133bd24b050f07772c5eb369cfc5fb9e3b7600e1b4a981038440d81733"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): cosyvoice/flow/decoder.py:50-57 | cosyvoice/transformer/convolution.py:204-212 | cosyvoice/transformer/convolution.py:238-246 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/decoder.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"187e009406e357a2cb3c2083fffd47e67bf294b5a4c8f8fd8b4ae86797fde698"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): runtime/triton_trtllm/infer_cosyvoice3.py:39-42 | runtime/triton_trtllm/offline_inference.py:57-60 \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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"439e257c1c9c448b43bdc7fcd5acc48251d62855b563b84b0059c3fda2c55bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53\u201354 lines \u00D7 2): runtime/triton_trtllm/infer_cosyvoice3.py:377-430 | runtime/triton_trtllm/offline_inference.py:501-553 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"43706e98b75597f0775b111a18d147075b21e9e1ff8cb505b6bf91007672ad69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): cosyvoice/transformer/encoder.py:58-106 | cosyvoice/transformer/upsample_encoder.py:136-184 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/transformer/encoder.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"65595622ab601f529bc26c69b24702a0874563d24ebaae61d2d6f3b4cfd15a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201348 lines \u00D7 2): runtime/triton_trtllm/infer_cosyvoice3.py:125-154 | runtime/triton_trtllm/offline_inference.py:155-202 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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 \u0060runtime/triton_trtllm/infer_cosyvoice3.py:125\u0060 it begins part-way through the construct above it, so those exact 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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d81807bea2f0d9f641522b5cbdb404ddbfcb8d86a972f6d5777b67e1466000c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201342 lines \u00D7 2): runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:122-163 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:85-122 \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":"runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6547526e04221a6c41940f6d9d499dd7457c23c7b245049afa6a7667dcf55b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): examples/grpo/cosyvoice2/infer_dataset.py:139-179 | runtime/triton_trtllm/offline_inference.py:131-171 \u2014 before extracting anything, compare \u0060examples/grpo/cosyvoice2/infer_dataset.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/grpo/cosyvoice2/infer_dataset.py:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/grpo/cosyvoice2/infer_dataset.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc4d802237bb33ba6d6bcdb6a3f6f90fca6626231b22fcf077834c83148c481"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:393-462 | runtime/triton_trtllm/token2wav_dit.py:393-462 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"950ad673b72d89b66797bc2d47e54e439710f1e6d1e3668c383bff179f3c3dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201338 lines \u00D7 3): examples/grpo/cosyvoice2/scripts/offline-decode-files.py:323-360 | runtime/triton_trtllm/infer_cosyvoice3.py:142-156 | runtime/triton_trtllm/offline_inference.py:185-204 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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 \u0060examples/grpo/cosyvoice2/scripts/offline-decode-files.py:323\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/grpo/cosyvoice2/scripts/offline-decode-files.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fef99418614b09f09be6ef6f8798e1eafd30478c123d44971165f2f276a107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:137-173 | runtime/triton_trtllm/token2wav_dit.py:137-173 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbfa4daf5d19a3624a4cc9d6e8e2f687d5c7af1a00a3fd51fbfdc94569d2803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): cosyvoice/flow/decoder.py:211-244 | cosyvoice/flow/decoder.py:406-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cosyvoice/flow/decoder.py:440\u0060 calls \u0060add_optional_chunk_mask\u0060 and \u0060cosyvoice/flow/decoder.py:245\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":"cosyvoice/flow/decoder.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46f47e721be635c588ce09a5ba6fb7c512aa744412e64912f5afb994e48152e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:48-72 | runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py:48-72 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 97 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 \u0060runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"285df429909a35828d69c3be05cb950208d97854861fb1bbca56e12a48783041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): cosyvoice/hifigan/generator.py:512-537 | cosyvoice/hifigan/generator.py:682-707 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cosyvoice/hifigan/generator.py:512\u0060 it does not close everything it opens, so those exact 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, \u0060cosyvoice/hifigan/generator.py:709\u0060 calls \u0060prod\u0060 and \u0060cosyvoice/hifigan/generator.py:538\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":"cosyvoice/hifigan/generator.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"e477151e7b9ac03aff92aed7608632e9e44ac54f24788994e1577417499afe8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201321 lines \u00D7 3): runtime/triton_trtllm/client_grpc.py:258-278 | runtime/triton_trtllm/infer_cosyvoice3.py:134-144 | runtime/triton_trtllm/offline_inference.py:171-188 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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 \u0060runtime/triton_trtllm/client_grpc.py:258\u0060 it begins part-way through the construct above it, so those exact 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":"runtime/triton_trtllm/client_grpc.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca03208daffa90472698a36b80022ec35ec80db64b757c95a716eac22043fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201321 lines \u00D7 3): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:176-196 | runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:182-202 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:168-178 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note 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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d004e876e5dbc36bb2691b48b97b3225fae564d7ace796ac1d73aed3db66f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): cosyvoice/utils/executor.py:51-71 | cosyvoice/utils/executor.py:101-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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, \u0060cosyvoice/utils/executor.py:50\u0060 calls \u0060eval\u0060 and \u0060cosyvoice/utils/executor.py:100\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":"cosyvoice/utils/executor.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efb5c66234d183881b5b07574c3969aa1bfcf4c6ae502515ab5d318fa200d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201320 lines \u00D7 3): examples/grpo/cosyvoice2/infer_dataset.py:162-181 | runtime/triton_trtllm/infer_cosyvoice3.py:124-134 | runtime/triton_trtllm/offline_inference.py:154-173 \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 \u0060examples/grpo/cosyvoice2/infer_dataset.py:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/grpo/cosyvoice2/infer_dataset.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbb6f5fcace313c1e64ce84232cb529676d3e21c0198eca34b5cb8e8ce9a828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201320 lines \u00D7 3): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:202-221 | runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:208-227 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:182-192 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note 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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb858b49df2ccefc3225a3e60a37f443ccbc5a757c933614ce3a633f8310ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): cosyvoice/flow/decoder.py:149-168 | cosyvoice/flow/decoder.py:358-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/decoder.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b81514c1528d43487217686292082a36abd85dfa979d9681fe01c53863322d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): runtime/triton_trtllm/infer_cosyvoice3.py:336-355 | runtime/triton_trtllm/offline_inference.py:458-477 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce3cca07a5b36c27de0ddc0a4822cb84bca7a819d04469a6e80428f48c19b53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): cosyvoice/flow/decoder.py:170-188 | cosyvoice/flow/decoder.py:379-397 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cosyvoice/flow/decoder.py:170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/decoder.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda8364ce24de6de373d9d91b091f792f6d7932641081fd261edd574d0d468bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): cosyvoice/llm/llm.py:282-300 | cosyvoice/llm/llm.py:688-706 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/llm/llm.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e4a352cd179484dc8e38ed321151bd84518c9ae13c5ba76fa0269cbfcbc70d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): cosyvoice/flow/flow.py:191-208 | cosyvoice/flow/flow.py:325-342 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/flow/flow.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbe50ed8d825a4d89f006fb008c2d5d1a7a16440cb10afa1cca49b9eebd125e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): cosyvoice/hifigan/generator.py:405-422 | cosyvoice/hifigan/generator.py:600-616 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cosyvoice/hifigan/generator.py:405\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/hifigan/generator.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b752648e8417dd47a8f46077751d4fed0e59ca3ca13d3690264baad843704cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): examples/grpo/cosyvoice2/infer_dataset.py:118-134 | runtime/triton_trtllm/offline_inference.py:104-121 \u2014 before extracting anything, compare \u0060examples/grpo/cosyvoice2/infer_dataset.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/grpo/cosyvoice2/infer_dataset.py:118\u0060 it does not close everything it opens, so those exact 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":"examples/grpo/cosyvoice2/infer_dataset.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"13de809962c8c2a0b2c5de7795fdd2852339bd452b15d3b2ff78ff78394668dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201337 lines \u00D7 2): runtime/triton_trtllm/infer_cosyvoice3.py:224-257 | runtime/triton_trtllm/offline_inference.py:330-366 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d66f5e9d5f57503adfe08203f96a3526b8e7f72322443983624a98281b98699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): runtime/triton_trtllm/infer_cosyvoice3.py:300-317 | runtime/triton_trtllm/offline_inference.py:421-437 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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, \u0060runtime/triton_trtllm/offline_inference.py:439\u0060 calls \u0060to\u0060 and \u0060runtime/triton_trtllm/infer_cosyvoice3.py:319\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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8674ff129c6458167881b9823c6570b28a96b9c973a40eec34d057436561db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): cosyvoice/flow/decoder.py:246-262 | cosyvoice/flow/decoder.py:443-459 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cosyvoice/flow/decoder.py:461\u0060 calls \u0060add_optional_chunk_mask\u0060 and \u0060cosyvoice/flow/decoder.py:263\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":"cosyvoice/flow/decoder.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"679ff4efc9e1bb87138d5ec2703c90b28d68e9d5de8b0858e3a0c3e71e85e485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): runtime/triton_trtllm/infer_cosyvoice3.py:319-335 | runtime/triton_trtllm/offline_inference.py:441-456 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e89c51d6556c1fe2f9a3853e23b29392a2caa7722ac89ae76916d51d110bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): cosyvoice/utils/scheduler.py:92-105 | cosyvoice/utils/scheduler.py:310-325 | cosyvoice/utils/scheduler.py:570-583 \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":"cosyvoice/utils/scheduler.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be9fd981216595b890bcf547ae7b857cc01c4f4ff6d5f5e03d1e9d55f9b942f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): cosyvoice/transformer/subsampling.py:262-277 | cosyvoice/transformer/subsampling.py:317-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cosyvoice/transformer/subsampling.py:262\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/transformer/subsampling.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ba24d35a3e3bb3cf0f78da1b50263ea83fc571bde8b6ae9dc290c08d6352ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:52-87 | runtime/triton_trtllm/token2wav_dit.py:52-87 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a516f3ca339e45b026d80eedcb4c96569aaed845207df5896c2e841e7aa0f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201315 lines \u00D7 3): cosyvoice/flow/flow.py:130-132 | cosyvoice/flow/flow.py:267-281 | cosyvoice/flow/flow.py:400-414 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \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":"cosyvoice/flow/flow.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd87ed5b17a92da41770258448e2788f450bb6abd7a52540017b0a7d2bbafcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): examples/grpo/cosyvoice2/infer_dataset.py:202-216 | runtime/triton_trtllm/offline_inference.py:239-252 \u2014 before extracting anything, compare \u0060examples/grpo/cosyvoice2/infer_dataset.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060runtime/triton_trtllm/offline_inference.py:253\u0060 calls \u0060time\u0060 and \u0060examples/grpo/cosyvoice2/infer_dataset.py:218\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":"examples/grpo/cosyvoice2/infer_dataset.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7f7664a02b331ca48188a745b8a20e5f57395cc47e9c71e6d73db3ec43b3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:67-81 | runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:88-102 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:66\u0060 calls \u0060log_info\u0060 and \u0060runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:87\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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d032d3ef79d3187843106386a603a085aafe979f57559b0c096e41205e1978e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:291-305 | runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:279-293 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dc4d24ac703bf25e2ed905574f07c180cdfaa193f53a87482c2af1629eb2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:345-359 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:378-391 \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 \u0060runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"2343431e424a011629312f5bd7aec77f65b205da052597bc95fbe13921c3b2f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): cosyvoice/utils/train_utils.py:117-130 | cosyvoice/utils/train_utils.py:151-164 | cosyvoice/utils/train_utils.py:170-183 \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 \u0060cosyvoice/utils/train_utils.py:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/utils/train_utils.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c96953d03d7e4fb6a61996c881392e27959d282611009dd9a760ac2d10dd18b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201327 lines \u00D7 3): cosyvoice/cli/model.py:159-173 | cosyvoice/cli/model.py:300-326 | runtime/triton_trtllm/model_repo/token2wav/1/model.py:134-160 \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 \u0060cosyvoice/cli/model.py:300\u0060 it begins part-way through the construct above it, so those exact 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":"cosyvoice/cli/model.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa54c4934e169dc70c748b6dfad8e02861f01e9ff43a928c7210b5c93d4fe69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cosyvoice/transformer/encoder.py:461-474 | cosyvoice/transformer/upsample_encoder.py:204-217 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cosyvoice/transformer/upsample_encoder.py:203\u0060 calls \u0060PreLookaheadLayer\u0060 and \u0060cosyvoice/transformer/encoder.py:459\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":"cosyvoice/transformer/encoder.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6499d6afa5efcc08fd843eef9b813e99bb02ea87f31dc86b4716db9b0d9669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:140-153 | runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py:133-146 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 97 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":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae7e09e8420d1f88ba9d64f46bd3de50c25ce2ab01abeb819644d6fabb00a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:265-277 | runtime/triton_trtllm/token2wav.py:194-206 | runtime/triton_trtllm/token2wav_cosyvoice3.py:220-232 | runtime/triton_trtllm/token2wav_dit.py:265-277 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"4020cb95a94e3ae8d7fe994a09e10b2f5ed34416639e00487e8eec9715efa952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cosyvoice/flow/decoder.py:127-139 | cosyvoice/flow/decoder.py:336-348 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cosyvoice/flow/decoder.py:127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/flow/decoder.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48acc3da7bb55aad12f069a23ad6e7c603bafc86940f76ffca66e9f016f33d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:146-158 | runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:161-173 \u2014 both copies are in the same file, so extract the block 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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e9bc71d4114cee6e3ea8bdf1714be5980e1683a65a587a38969a1741ab2afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav/1/model.py:171-183 | runtime/triton_trtllm/model_repo/token2wav_dit/1/model.py:79-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/triton_trtllm/model_repo/token2wav/1/model.py:171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo/token2wav/1/model.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"de36a4b79eed2d66119095cd48655bd0098298669ff9587540784d1005b5996b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:374-387 | runtime/triton_trtllm/token2wav_dit.py:374-387 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e3e80b12268732608abcca264bbebc7e3b20ed11e4c947421e3219a32680db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): cosyvoice/utils/file_utils.py:77-88 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:81-92 | runtime/triton_trtllm/token2wav.py:60-71 | runtime/triton_trtllm/token2wav_cosyvoice3.py:59-70 | runtime/triton_trtllm/token2wav_dit.py:81-92 \u2014 before extracting anything, compare \u0060cosyvoice/utils/file_utils.py\u0060 and \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"cosyvoice/utils/file_utils.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b949cd54f52b24df3c1c316acaffe81f2ac5e8a0b9fc22bbce4e4f2bf2b4a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:298-309 | runtime/triton_trtllm/token2wav.py:225-234 | runtime/triton_trtllm/token2wav_dit.py:298-309 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c5ea36092190c99a4db973f11971dad3ccf18739cba86e0f7e7ab1ba8fb467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): cosyvoice/flow/decoder.py:264-278 | cosyvoice/flow/decoder.py:464-478 \u2014 both copies are in the same file, so extract the block 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, \u0060cosyvoice/flow/decoder.py:480\u0060 calls \u0060add_optional_chunk_mask\u0060 and \u0060cosyvoice/flow/decoder.py:279\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":"cosyvoice/flow/decoder.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"130450c37ff9833eec2401cc989ec4469251cbe0c26fa802fc876bc4b1faca1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cosyvoice/flow/decoder.py:280-291 | cosyvoice/flow/decoder.py:483-494 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/flow/decoder.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"341a0608f7426034431825f313abddc2f39d171abb3119ed0317a28eb5a388fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201312 lines \u00D7 3): cosyvoice/flow/flow.py:119-120 | cosyvoice/flow/flow.py:246-257 | cosyvoice/flow/flow.py:380-391 \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. 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":"cosyvoice/flow/flow.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd7805d37b118057f1a06d63aee02e480001501b94bd1d21eb1cbeeb025ddd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): runtime/triton_trtllm/infer_cosyvoice3.py:365-376 | runtime/triton_trtllm/offline_inference.py:489-499 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e4f00a0796c6c05ab2c3ec67d12e7d9951aa792117f8b160fea3a0c45a4738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:335-343 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:367-378 \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":"runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf31c9b3524249306d2f2ab7df83e289c1b7b298aeb3ad10542a735f862365b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201312 lines \u00D7 3): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:116-127 | runtime/triton_trtllm/token2wav.py:101-104 | runtime/triton_trtllm/token2wav_dit.py:116-127 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060model_dir\u0060 to \u0060str\u0060 in one and \u0060str = \u0022./CosyVoice2-0.5B\u0022\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:127\u0060 calls \u0060to\u0060, \u0060eval\u0060 and \u0060runtime/triton_trtllm/token2wav.py:104\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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"947d92c5deb564fe87f66a5fbd059645d00bc9c0036100d85c362074e0913799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:222-233 | runtime/triton_trtllm/token2wav_dit.py:222-233 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c21172f8fe3f4be5a2a594323d463bf513699713bcafaf06c11956eed7bdd30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:35-46 | runtime/triton_trtllm/token2wav_cosyvoice3.py:32-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cef182920d4c926a466c835eeba99927da48b0f69c29b7c53aa7524339b715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:107-117 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:184-194 | runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py:107-117 | runtime/triton_trtllm/token2wav.py:136-146 | runtime/triton_trtllm/token2wav_cosyvoice3.py:201-211 | runtime/triton_trtllm/token2wav_dit.py:184-194 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 97 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":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1b438182873d95ff317b02e2b97ccbe71cb786f232c54e5d48d72b8137e832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 4): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:131-139 | runtime/triton_trtllm/token2wav.py:106-112 | runtime/triton_trtllm/token2wav_cosyvoice3.py:117-127 | runtime/triton_trtllm/token2wav_dit.py:131-139 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060model_dir\u0060 to \u0060str\u0060 in one and \u0060str = \u0022./CosyVoice2-0.5B\u0022\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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fda974abe08f65bf03a618a532893c793a40c3451f63a74acc237b6decffc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:189-199 | runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:270-280 | runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:195-205 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 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 \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:189\u0060 it begins part-way through the construct above it, so those exact 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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdf6d0c3300edda042f302d56f2ef5805d82f16a26a652b5b0b12d36c6dfdc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cosyvoice/cli/model.py:219-229 | cosyvoice/cli/model.py:372-382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cosyvoice/cli/model.py:219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/cli/model.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baa0d08f171030c912b86e5cf08cc1b6cb01ccadeb0a71f7c1467b7f3c787dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cosyvoice/cli/model.py:252-262 | cosyvoice/cli/model.py:404-414 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cosyvoice/cli/model.py:267\u0060 calls \u0060hamming\u0060 and \u0060cosyvoice/cli/model.py:416\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":"cosyvoice/cli/model.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c51cd1ec535c597b9ea74b76ae37ff936e7703a00a7553ad885f15c1c6d5658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cosyvoice/utils/executor.py:76-86 | cosyvoice/utils/executor.py:134-144 \u2014 both copies are in the same file, so extract the block 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, \u0060cosyvoice/utils/executor.py:133\u0060 calls \u0060zero_grad\u0060 and \u0060cosyvoice/utils/executor.py:75\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":"cosyvoice/utils/executor.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7c85e8a7ae538e0e5ba007974296a412f38a3e9a5895afd1063146b5cd2214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py:47-58 | runtime/triton_trtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py:47-58 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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 \u0060runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b9d871f3a6734d1c6293649484f6ff1af0bf239147d64f2675dfc9ba750b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:57-67 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:28-36 \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":"runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7feede569d5b87a729e5f815d25afbdcbbc069adbdff292b0eba50af72f3c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:82-92 | runtime/triton_trtllm/model_repo_cosyvoice3/vocoder/1/model.py:24-34 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:82\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c68dc379830ae0fb480fad57d582c90513c2037532ffa778b5ce1a35d5e091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:294-301 | runtime/triton_trtllm/token2wav.py:221-228 | runtime/triton_trtllm/token2wav_cosyvoice3.py:246-255 | runtime/triton_trtllm/token2wav_dit.py:294-301 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c99326baf3da10e761e365ce2fa15d67e875eb5393094e14d71c05bd35cb9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): cosyvoice/flow/flow.py:42-51 | cosyvoice/flow/flow.py:167-176 | cosyvoice/flow/flow.py:302-311 \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, \u0060cosyvoice/flow/flow.py:53\u0060 calls \u0060Linear\u0060, \u0060output_size\u0060 and \u0060cosyvoice/flow/flow.py:313\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":"cosyvoice/flow/flow.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfd7f813e6f5a2d12e7d50647e8d7406ddf278dcd480804c582386faa472ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:419-427 | runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:353-361 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:385-394 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 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 \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:419\u0060 it does not close everything it opens, so those exact 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, \u0060runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:418\u0060 calls \u0060log_info\u0060 and \u0060runtime/triton_trtllm/model_repo/cosyvoice2_dit/1/model.py:352\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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcddaa57f3bd9cadfb869d61edaff98a5dcc830a9c1993d6d413aced883a718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): examples/grpo/cosyvoice2/infer_dataset.py:218-227 | runtime/triton_trtllm/offline_inference.py:257-265 \u2014 before extracting anything, compare \u0060examples/grpo/cosyvoice2/infer_dataset.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060runtime/triton_trtllm/offline_inference.py:253\u0060 calls \u0060time\u0060 and \u0060examples/grpo/cosyvoice2/infer_dataset.py:216\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":"examples/grpo/cosyvoice2/infer_dataset.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafb43d863500f8d80b2091e461a9e120db0095b2c247b830b64fd0860b17437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/grpo/cosyvoice2/infer_dataset.py:270-279 | runtime/triton_trtllm/offline_inference.py:313-322 \u2014 before extracting anything, compare \u0060examples/grpo/cosyvoice2/infer_dataset.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"examples/grpo/cosyvoice2/infer_dataset.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"627592ef1513000676346bd318c1554fc7076574c578d53e1373e329cdc3f94b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py:88-97 | runtime/triton_trtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py:81-90 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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, \u0060runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py:86\u0060 calls \u0060clone\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py:79\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":"runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"532d7d3196c75b793957290a8797dd1182068b02e36189027480ba8ed5ee6d00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py:408-417 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:376-384 \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":"runtime/triton_trtllm/model_repo/cosyvoice2/1/model.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab02c9b5400beae89ae91fc7b02ebe9845842371e3e5a511bc96ec84da577de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:323-332 | runtime/triton_trtllm/token2wav_dit.py:323-332 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d770848fe31a8ae7df15439e2e7068b0d9e77878905f01808afec970d67231f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): cosyvoice/flow/decoder.py:245-253 | cosyvoice/flow/decoder.py:263-271 | cosyvoice/flow/decoder.py:279-287 | cosyvoice/flow/decoder.py:442-450 | cosyvoice/flow/decoder.py:463-471 | cosyvoice/flow/decoder.py:482-490 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cosyvoice/flow/decoder.py:440\u0060 calls \u0060add_optional_chunk_mask\u0060 and \u0060cosyvoice/flow/decoder.py:244\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":"cosyvoice/flow/decoder.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d6308cc68c9bda0e19c07ccfff9c7a9d678f209b296b84f505de97663594c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): cosyvoice/utils/file_utils.py:65-74 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:62-71 | runtime/triton_trtllm/token2wav.py:48-57 | runtime/triton_trtllm/token2wav_cosyvoice3.py:47-56 | runtime/triton_trtllm/token2wav_dit.py:62-71 \u2014 before extracting anything, compare \u0060cosyvoice/utils/file_utils.py\u0060 and \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cosyvoice/utils/file_utils.py:62\u0060 calls \u0060set_memory_pool_limit\u0060 and \u0060runtime/triton_trtllm/token2wav.py:44\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":"cosyvoice/utils/file_utils.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"057d4113e80b68b6fb047b216dc7e03dc50853bbdeeeea7e39060432a33499c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:316-326 | runtime/triton_trtllm/token2wav.py:238-248 | runtime/triton_trtllm/token2wav_dit.py:316-326 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea79704ef59d1ec99ca7d8df3d5e203afa505aee2fa095ee5bcc5f6a2396681a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cosyvoice/flow/decoder.py:117-125 | cosyvoice/flow/decoder.py:326-334 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/flow/decoder.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c72a8201a3c12f67858f1915babcf23bc6caa1adcf3a8b5a8a302b16246899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cosyvoice/flow/flow.py:225-233 | cosyvoice/flow/flow.py:359-367 \u2014 both copies are in the same file, so extract the block 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cosyvoice/flow/flow.py:224\u0060 calls \u0060make_pad_mask\u0060, \u0060sum\u0060, \u0060squeeze\u0060 and \u0060cosyvoice/flow/flow.py:357\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":"cosyvoice/flow/flow.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c528dac9fc91c02a3513a895ddda61c7af1ff106922763f51092c9573497057e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cosyvoice/hifigan/generator.py:441-452 | cosyvoice/hifigan/generator.py:635-646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cosyvoice/hifigan/generator.py:441\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/hifigan/generator.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c82800da5dfc0b5783529dfafdf5fb877f4a083f7c092fccd811f8e417ba9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cosyvoice/llm/llm.py:64-72 | cosyvoice/llm/llm.py:279-287 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/llm/llm.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9470cf3e49d427e728e194fdfd04da6c6693a9bf6eda7a1f0d296bee252b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cosyvoice/llm/llm.py:485-493 | cosyvoice/llm/llm.py:570-578 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cosyvoice/llm/llm.py:485\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/llm/llm.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ab9f4fc359e69279014031bc3762844233a7a73531b79456e8663698c09a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cosyvoice/transformer/attention.py:186-194 | cosyvoice/transformer/attention.py:295-303 \u2014 both copies are in the same file, so extract the block 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, \u0060cosyvoice/transformer/attention.py:277\u0060 calls \u0060transpose\u0060 and \u0060cosyvoice/transformer/attention.py:168\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":"cosyvoice/transformer/attention.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cd6d7a1e09fd0a0698e8a29d5839e7317681d300ead2f2ca478fabfe6170fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:348-357 | runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:406-414 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py:348\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo_cosyvoice3/cosyvoice3/1/model.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"171f3a68788a90b2d0cc108c91a4029f247d27f11b776bd15658200b1ebc9f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): cosyvoice/utils/file_utils.py:54-61 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:50-57 | runtime/triton_trtllm/token2wav.py:37-44 | runtime/triton_trtllm/token2wav_dit.py:50-57 \u2014 before extracting anything, compare \u0060cosyvoice/utils/file_utils.py\u0060 and \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cosyvoice/utils/file_utils.py:62\u0060 calls \u0060set_memory_pool_limit\u0060 and \u0060runtime/triton_trtllm/token2wav.py:46\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":"cosyvoice/utils/file_utils.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c247c927b946bb79e10db4c1c643b677260586df25004948b317562ba4f50366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 4): cosyvoice/cli/cosyvoice.py:30-37 | cosyvoice/cli/cosyvoice.py:142-149 | cosyvoice/cli/cosyvoice.py:192-199 | runtime/triton_trtllm/model_repo/token2wav/1/model.py:59-62 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/cli/cosyvoice.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"36008ef1cc5d53e5df1659b9917d7c1d396a22baf122433d1e54cdab102e0764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 4): cosyvoice/cli/model.py:139-141 | cosyvoice/cli/model.py:298-305 | cosyvoice/cli/model.py:431-438 | runtime/triton_trtllm/model_repo/token2wav/1/model.py:132-139 \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 \u0060cosyvoice/cli/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. 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":"cosyvoice/cli/model.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f85d8745edccd53b8ad84dc219998e18d9fe8fb057b3c2d8a92aabf824a19f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): example.py:76-82 | example.py:94-101 \u2014 both copies are in the same file, so extract the block 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":"example.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b178ad8122d6e146e97d82fb7ed16f2a17e1081aa6dcf546f741c8975f10541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): runtime/triton_trtllm/infer_cosyvoice3.py:449-456 | runtime/triton_trtllm/offline_inference.py:577-584 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8638e5bab2c09786649c2339fa02c2b7f3099ce10040a761f915f341c65543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py:74-81 | runtime/triton_trtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py:67-74 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/audio_tokenizer/1/model.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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":"runtime/triton_trtllm/model_repo/audio_tokenizer/1/model.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"11499b35db4998968ad689f8323652b65a592316ea42da9c6cb32401faf8d4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:92-125 | runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py:92-125 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 97 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":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aff0b4743a5a51a05c64aef699478037e21cba0efd0e42fb0e8fecbd45c8c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:284-291 | runtime/triton_trtllm/token2wav_dit.py:284-291 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"81125143b5b10bd8fbbed9452f8d920473d7648d51827122cd02a1d53b49947e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:135-142 | runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:153-161 | runtime/triton_trtllm/model_repo_cosyvoice3/vocoder/1/model.py:48-53 \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. 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":"runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77b9328dfff21898153ff4e28bb2652a289a7952eecd2b5bd28e08e0c8580ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 5): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:97-102 | runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:18-24 | runtime/triton_trtllm/token2wav.py:76-81 | runtime/triton_trtllm/token2wav_cosyvoice3.py:75-80 | runtime/triton_trtllm/token2wav_dit.py:97-102 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e9f7c804d81047682ba74406ca9869ea1eb03dc346c5f5bf9a8537fc945076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): cosyvoice/cli/cosyvoice.py:40-46 | cosyvoice/cli/cosyvoice.py:152-158 | cosyvoice/cli/cosyvoice.py:202-208 \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":"cosyvoice/cli/cosyvoice.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e235c70e6347014e97bc8756fe7c9be66b521c5f0d1507f03d14d90563de33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): cosyvoice/flow/flow.py:83-89 | cosyvoice/flow/flow.py:216-222 | cosyvoice/flow/flow.py:351-357 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060cosyvoice/flow/flow.py:91\u0060 calls \u0060make_pad_mask\u0060, \u0060to\u0060 and \u0060cosyvoice/flow/flow.py:359\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":"cosyvoice/flow/flow.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec00ff0bd0a978c7bf1396d718a124039396fb30370d68faa8d4a372c3109bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): cosyvoice/transformer/subsampling.py:185-191 | cosyvoice/transformer/subsampling.py:241-247 | cosyvoice/transformer/subsampling.py:294-300 \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 \u0060cosyvoice/transformer/subsampling.py:185\u0060 it does not close everything it opens, so those exact 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, \u0060cosyvoice/transformer/subsampling.py:236\u0060 calls \u0060pos_enc\u0060 and \u0060cosyvoice/transformer/subsampling.py:179\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":"cosyvoice/transformer/subsampling.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"175538209c0dac61569fe9e573c78685bbe5de699a2f9103fb72f35410f1d778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): cosyvoice/utils/file_utils.py:56-62 | runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:40-46 | runtime/triton_trtllm/token2wav_cosyvoice3.py:37-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/utils/file_utils.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06c5b24ee1088189414a11ec08fb95792d84157512511741a5f6d33df6e0313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:468-474 | runtime/triton_trtllm/token2wav.py:290-296 | runtime/triton_trtllm/token2wav_dit.py:468-474 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc63207e8fda6db82b2fbd0337868ef66b032f1c151f467d1422ac8caa049e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cosyvoice/cli/cosyvoice.py:168-174 | runtime/triton_trtllm/model_repo/token2wav/1/model.py:66-72 \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":"cosyvoice/cli/cosyvoice.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c7beaa31b84e29be418a0713e6b62c2d40b5f99de4fa184fed60e6314d3c34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): cosyvoice/cli/model.py:54-59 | cosyvoice/cli/model.py:414-420 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/cli/model.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f0d1c42f222ea3bf22bf9fe19fbf2fad5649914444b7279fc1aabfbb229f06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): cosyvoice/utils/file_utils.py:64-70 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:60-67 | runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py:48-53 | runtime/triton_trtllm/token2wav.py:47-53 | runtime/triton_trtllm/token2wav_cosyvoice3.py:46-52 | runtime/triton_trtllm/token2wav_dit.py:60-67 \u2014 before extracting anything, compare \u0060cosyvoice/utils/file_utils.py\u0060 and \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cosyvoice/utils/file_utils.py:62\u0060 calls \u0060set_memory_pool_limit\u0060 and \u0060runtime/triton_trtllm/token2wav.py:44\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":"cosyvoice/utils/file_utils.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"260070afd895968a23cee6610a62a534c418c595664799db3dbbc21c3e5b347f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:75-81 | runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py:75-81 | runtime/triton_trtllm/token2wav.py:157-163 | runtime/triton_trtllm/token2wav_cosyvoice3.py:176-182 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 97 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":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"643b8722177a3dd347d2cd3283c1cf1cc71ca245e214a06356373f3e470febcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): cosyvoice/cli/model.py:150-156 | cosyvoice/cli/model.py:305-311 | runtime/triton_trtllm/model_repo/token2wav/1/model.py:139-145 \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":"cosyvoice/cli/model.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f332c1e475cc14a4f4b67ae921717f963c122b19961b3c5ad175650ae3d7c90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): cosyvoice/flow/flow.py:70-75 | cosyvoice/flow/flow.py:204-209 | cosyvoice/flow/flow.py:338-343 \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 before the matched lines, \u0060cosyvoice/flow/flow.py:201\u0060 calls \u0060random\u0060 and \u0060cosyvoice/flow/flow.py:67\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":"cosyvoice/flow/flow.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5331173fa51b8d6548d881e3dc7993b9e410911b5e05c81e00baf836bdd71f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:467-472 | runtime/triton_trtllm/streaming_inference.py:16-21 | runtime/triton_trtllm/token2wav_dit.py:467-472 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd20b84c73ec1d7ac42941385b997c5a0ca8108c18d6fb04cf85d3a2d1eeb53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cosyvoice/cli/cosyvoice.py:163-168 | cosyvoice/cli/cosyvoice.py:213-218 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/cli/cosyvoice.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a20d4ee497580db3d57731c54fbec6f576926ead86d58c80367670a5e5cff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cosyvoice/cli/frontend.py:110-116 | cosyvoice/utils/onnx.py:40-46 \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":"cosyvoice/cli/frontend.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e113f7f1a61b45a74854e0683344e1e837e2ac10a2d1ba8d51af9dcf045154c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cosyvoice/cli/model.py:84-90 | runtime/triton_trtllm/model_repo/token2wav/1/model.py:109-115 \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":"cosyvoice/cli/model.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1568febad47efcca422b010e572de1fdb141342a29edc0de2f0ae8814b09b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cosyvoice/cli/model.py:269-274 | cosyvoice/cli/model.py:416-421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cosyvoice/cli/model.py:267\u0060 calls \u0060hamming\u0060 and \u0060cosyvoice/cli/model.py:414\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":"cosyvoice/cli/model.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"30350c50553871c97ece0646d748ecc0f102b5737b6a80b7f1af133bbfc31e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cosyvoice/flow/DiT/modules.py:386-393 | cosyvoice/flow/DiT/modules.py:467-474 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/flow/DiT/modules.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d125e3602ccd749e190503a96f777f7fb7210358f1ed8ecc76df231b938e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cosyvoice/hifigan/generator.py:462-467 | cosyvoice/hifigan/generator.py:656-661 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cosyvoice/hifigan/generator.py:462\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/hifigan/generator.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e63d29f2a172ccdc8ad90617ce3f977c1f72e3f2c24c41a534be061e7d8640"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:205-211 | runtime/triton_trtllm/token2wav_dit.py:205-211 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"124f382f77bb93ab017375a01c98c0e52561a35d24598db7cb966edbe69b9121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): cosyvoice/cli/model.py:87-91 | runtime/triton_trtllm/model_repo/token2wav/1/model.py:112-116 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:230-234 | runtime/triton_trtllm/token2wav.py:178-182 | runtime/triton_trtllm/token2wav_cosyvoice3.py:153-157 | runtime/triton_trtllm/token2wav_dit.py:230-234 \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":"cosyvoice/cli/model.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13a19c4df071784107215451dc567b8adf63dd5b76dce09c104b1045b7745c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:198-202 | runtime/triton_trtllm/token2wav.py:150-154 | runtime/triton_trtllm/token2wav_cosyvoice3.py:213-217 | runtime/triton_trtllm/token2wav_dit.py:198-202 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4cdae54f3f1a7b8f1704031247226122704e5c2c2712eba52439515f5d4bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:280-284 | runtime/triton_trtllm/token2wav.py:209-213 | runtime/triton_trtllm/token2wav_cosyvoice3.py:235-239 | runtime/triton_trtllm/token2wav_dit.py:280-284 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb2501e86141235cefa967ca5244fccf320d9db18313d321ab3393c6f484bb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:478-483 | runtime/triton_trtllm/streaming_inference.py:29-34 | runtime/triton_trtllm/token2wav.py:300-305 | runtime/triton_trtllm/token2wav_dit.py:478-483 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a816105405cf16e777fe40ea9d275fe89f8bede383fd7f4ede90c68d165b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): cosyvoice/llm/llm.py:377-384 | cosyvoice/llm/llm.py:482-489 | cosyvoice/llm/llm.py:567-574 \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":"cosyvoice/llm/llm.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0845cc4e5e1eae4bd0fb2391a95354eaf180904ad9575b78adea0ed46b390b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/grpo/cosyvoice2/infer_dataset.py:223-227 | runtime/triton_trtllm/infer_cosyvoice3.py:186-191 | runtime/triton_trtllm/offline_inference.py:261-265 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/grpo/cosyvoice2/infer_dataset.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b1764f46da252537810b2e0f756db07c11cde95db81593f45967e0b6e527f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:335-341 | runtime/triton_trtllm/token2wav.py:258-264 | runtime/triton_trtllm/token2wav_dit.py:335-341 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav.py\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 166 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc736b54e3d8aa47260d8f3669616d900e91ea5f81c8d148de5037234cfd29a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cosyvoice/cli/model.py:187-192 | cosyvoice/cli/model.py:338-343 \u2014 both copies are in the same file, so extract the block 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, \u0060cosyvoice/cli/model.py:185\u0060 calls \u0060zeros\u0060 and \u0060cosyvoice/cli/model.py:337\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":"cosyvoice/cli/model.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf72f81689b64106dd73a4b9fd39d75d30b6bccd2eb46c62b02d7875c54a53ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cosyvoice/flow/DiT/modules.py:376-383 | cosyvoice/flow/DiT/modules.py:458-465 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060cosyvoice/flow/DiT/modules.py:454\u0060 calls \u0060cat\u0060 and \u0060cosyvoice/flow/DiT/modules.py:373\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":"cosyvoice/flow/DiT/modules.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1a05974b1e85e9803ee3c39c0993e8d0d730511600078498fd0a74cd77bbb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): cosyvoice/flow/decoder.py:437-441 | cosyvoice/flow/decoder.py:460-462 | cosyvoice/flow/decoder.py:477-481 \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":"cosyvoice/flow/decoder.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"8452d501378c725bd08cd75ee6ca2882951bde14a91872582446e8e599f6fa95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cosyvoice/transformer/convolution.py:215-219 | cosyvoice/transformer/convolution.py:251-255 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/transformer/convolution.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c1045e04767e4f51472ac9fc718c3f969d2b0a9d0739465f6cc4271c5f5c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/grpo/cosyvoice2/infer_dataset.py:97-106 | runtime/triton_trtllm/infer_cosyvoice3.py:65-74 | runtime/triton_trtllm/offline_inference.py:83-92 \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 \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":"examples/grpo/cosyvoice2/infer_dataset.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"193ef57b467ed2acd0113d1ef4152f61eedb888ea79f0aeeb997cdf9b21c73d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): runtime/triton_trtllm/infer_cosyvoice3.py:46-61 | runtime/triton_trtllm/offline_inference.py:64-79 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/infer_cosyvoice3.py\u0060 and \u0060runtime/triton_trtllm/offline_inference.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 325 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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d619e86ebae12bfdaa58aafcc4b46001c64fdbaba260f0b67f8e19328e5b30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py:85-89 | runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:215-219 | runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py:85-89 | runtime/triton_trtllm/token2wav.py:167-171 | runtime/triton_trtllm/token2wav_cosyvoice3.py:186-191 | runtime/triton_trtllm/token2wav_dit.py:215-219 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py\u0060 and \u0060runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce1c7790f76c0627e02b02a452977ce5deff8ee70420512d4a7795fbc71ddfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:39-46 | runtime/triton_trtllm/token2wav_dit.py:39-46 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7d33d55261d4dfac5d42e74235b662704e17423668a6b43b75bcf33473b5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:347-357 | runtime/triton_trtllm/token2wav_dit.py:347-357 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"e820698ac3ed5346cc55f56a6ba119d3c0874ccb330eabc10573c40f003d04eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py:362-369 | runtime/triton_trtllm/token2wav_dit.py:362-369 \u2014 before extracting anything, compare \u0060runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py\u0060 and \u0060runtime/triton_trtllm/token2wav_dit.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 393 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"80201f66a1476c6f3da1b27c1478aa6b0777fd7778b10fbc1695901d9153f596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): cosyvoice/cli/cosyvoice.py:85-89 | cosyvoice/cli/cosyvoice.py:99-103 | cosyvoice/cli/cosyvoice.py:110-114 | cosyvoice/cli/cosyvoice.py:123-127 | cosyvoice/cli/cosyvoice.py:132-136 | cosyvoice/cli/cosyvoice.py:182-186 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/cli/cosyvoice.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"9248165ab0e2ed48eb3e50a11db79c814ca81dff4e281d1a30edabe88b413e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cosyvoice/llm/llm.py:620-625 | cosyvoice/llm/llm.py:646-651 \u2014 both copies are in the same file, so extract the block 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":"cosyvoice/llm/llm.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92958c9cb6dec2785ce8373ac8d59d2dcf8f347cada8d082cd7707702f09cb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): examples/grpo/cosyvoice2/infer_dataset.py:62-93 | examples/grpo/cosyvoice2/token2wav_asr_server.py:82-113 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"examples/grpo/cosyvoice2/infer_dataset.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d64e637c835e6c74446976ea010e71112fb12014906bebace1e7cd4518179fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/libritts/cosyvoice/local/prepare_data.py:24-37 | examples/magicdata-read/cosyvoice/local/prepare_data.py:23-36 \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":"examples/libritts/cosyvoice/local/prepare_data.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4701f62666aad56253659bef40c46abd80a1cc24268f51728680870413fb01"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: cosyvoice: cosyvoice: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"17ad6179698ffe5db5e7831d55c3c4e6af6afa03c219aa4b24c690e41867fede"}},{"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":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 8 significant file(s) lose their only recent owner: cosyvoice/llm/llm.py, cosyvoice/flow/decoder.py, cosyvoice/flow/flow.py, cosyvoice/utils/train_utils.py, cosyvoice/cli/cosyvoice.py, cosyvoice/transformer/upsample_encoder.py, cosyvoice/utils/common.py, tools/make_parquet_list.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"821e939ca30bcc7a59cf9e4ac1c26eaad45de11cfbd0af5ae3d0c063093cc8f4"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack: this is a hack to avoid in-place changes to the cache[\u0027estimator_att_cache\u0027] and cache[\u0027estimator_cnn_cache\u0027] \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/token2wav_dit.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"28167a361259b948d5383a1d82e9e6774bfc2f0f1d2ea2e7eb39ef1c60397ed8"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack: this is a hack to avoid in-place changes to the cache[\u0027estimator_att_cache\u0027] and cache[\u0027estimator_cnn_cache\u0027] \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b2928999a3106327bbfc544b7028118a1569ce202f0e3b381dd6c41c4e06a1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: device id settings \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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/model.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b723309d48dad9f99db261091e7afb38348672df56f6982baeb1a370f15a92"}},{"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 \u0060runtime/triton_trtllm/Dockerfile.server\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/Dockerfile.server"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c9ae63347c2c6227c39f4109e7bc03db38f5c0a960f926bad026dcdf8c1c7e"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (10842 LoC, 145 module-visible types across 17 directories) overshoots its size bounds. 2 of 2 build unit(s) (Python) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"requirements.txt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b5e6c5b01689366dfd955e9a5982baa6d1574c50f60c029ab1c2f9e36ca22e"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060runtime/triton_trtllm\u0060 (6378 LoC, 39 module-visible types across 13 directories) overshoots its size bounds. 2 of 2 build unit(s) (Python) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/triton_trtllm/requirements.txt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f4f9edb56d260a7f9cd1c489e067b350ddabe490c18d22c09b691c5f59bc74"}},{"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":"2504f1e1290247021b53596a59c5a03dc1ffb169ac6d15b875d55e35d7ae3090"},"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":"02896fec86b54311294c95f9e7be1ebeb51083d89c3414a35ab0af4921d322a5"},"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":"64c15d681bb5d8329758dc2cfaa02f6fe6da59ee9d59f000c63f71be3c8c06e0"},"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":"75de21e01a2e5658157e36e4612c1cc0b641c71eaacb5b84157eae7ca9af9ee6"},"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":"1144b5cd3f41dc66caff52a51df740633b3e2543f7de078b27fd53a299176605"},"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":"faa3a6c19a08a41e9ba018efa14709a234e97956ba87c0b0bdd820e92a4a5f40"},"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":"b5b72ab0f186e87205ca4c5935f86dda0b72228cc2182e6fe4bd2df2baa13a94"},"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":"2661ac7018412d76b57062f109baa65d606af65ed3369b222da9791f87cc8c84"},"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":"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":"912aa940873188e594837947e37c0960c6d503b61c5fdfa32deb596ca6a5ad61"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8a233d16f0b7f11742e8d68cc25ad57b8ae09fd837e8e066de1e0f433558c5e1"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c6a9819acca04bd0ba21f2035864a8216b5d2722816aa9582022040b769da79f"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a2b1290bbdb92c25c450f853b9d11f3fe839802de20d19bd1780afa1aa2c7ddc"},"taxa":[{"id":"CWE-330","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":"a422ccd219b36fbda30fbea387a54d133849496633ac51246cbc537a76be40a8"},"taxa":[{"id":"CWE-330","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":"3d18d35bd0b807f1f56aa1b7999770c06309281f5c182c2b60a93fb7625d5083"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07: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":"d5e4a50f837449cbc7d045e48a56439ed35a927b4c340ca100a4c8323fd9339d"},"taxa":[{"id":"CWE-319","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":"2ce448abb7fbf73818aa14f4c43a115e5582f5fb4cda749729aad910de385028"},"taxa":[{"id":"CWE-319","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":"4d36b0565646abbff12e48dd9147116c6573cb3e05dd19ef0fa96a7cba02d2e9"},"taxa":[{"id":"CWE-319","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":"194db7fc1e2c8f497ce8be46d5c4e9c0e26d2debbf4cb247010f3ffe2e725a2f"},"taxa":[{"id":"CWE-319","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":"df6dbcd77f73315113b47aa7c8e08810ca955e92081f0290b081785ee099dbb1"},"taxa":[{"id":"CWE-942","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"bd7f38f13f017967b8d2aa7d7646070353ada7bd3436f77841fe67d27d6e0362"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07: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":"96b7294b3bc1c21c0a7a0f900598c1c1f40e746dbea8bcd28f149aa786a9ec16"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"7153f73bc11e0f3cfbe73ad2046b2df0dfebcc106d93afaa5bfa29abd31d9f23"},"properties":{"dependency":{"package":"lightning","version":"2.2.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1857","PYSEC-2026-3043","PYSEC-2026-3624","PYSEC-2026-385","PYSEC-2026-386","PYSEC-2026-3967","PYSEC-2026-3970","PYSEC-2026-3971","PYSEC-2026-3972","PYSEC-2026-3974","PYSEC-2026-3975","PYSEC-2026-507"],"reachability":{"kind":"unknown"}}}},{"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":"91a40263b7f1aec13520bb44c3e2abdf1dc9d5c47588adabc3c8e00d75483d78"},"properties":{"dependency":{"package":"gradio","version":"5.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-275","PYSEC-2025-118","PYSEC-2025-119","PYSEC-2026-1410","PYSEC-2026-1423","PYSEC-2026-211","PYSEC-2026-2178","PYSEC-2026-2179","PYSEC-2026-63","PYSEC-2026-64","PYSEC-2026-65","PYSEC-2026-66"],"reachability":{"kind":"production","file":"webui.py","line":17}}}},{"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":"0494d63f23df1819c5b313c7d865a3c539867010664cba8452874d3a97e1efb9"},"properties":{"dependency":{"package":"lightning","version":"2.2.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-1857","PYSEC-2026-3043","PYSEC-2026-3624","PYSEC-2026-385","PYSEC-2026-386","PYSEC-2026-3967","PYSEC-2026-3970","PYSEC-2026-3971","PYSEC-2026-3972","PYSEC-2026-3974","PYSEC-2026-3975","PYSEC-2026-507"],"reachability":{"kind":"unknown"}}}},{"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":"60e549dd749875889a6763dcbdac56b3f214e93f9570c66cfa4c22d2a160ab00"},"properties":{"dependency":{"package":"torch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2024-48063","BIT-pytorch-2025-2148","BIT-pytorch-2025-2149","BIT-pytorch-2025-2953","BIT-pytorch-2025-2998","BIT-pytorch-2025-2999","BIT-pytorch-2025-3000","BIT-pytorch-2025-3001","BIT-pytorch-2025-32434","BIT-pytorch-2025-3730","BIT-pytorch-2025-46148","BIT-pytorch-2025-55551","BIT-pytorch-2025-55552","BIT-pytorch-2025-55553","BIT-pytorch-2025-55554","BIT-pytorch-2025-55557","BIT-pytorch-2025-55558","BIT-pytorch-2025-55560","BIT-pytorch-2026-24747","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-259","PYSEC-2025-189","PYSEC-2025-190","PYSEC-2025-191","PYSEC-2025-192","PYSEC-2025-193","PYSEC-2025-194","PYSEC-2025-195","PYSEC-2025-198","PYSEC-2025-203","PYSEC-2025-204","PYSEC-2025-205","PYSEC-2025-206","PYSEC-2025-207","PYSEC-2025-208","PYSEC-2025-209","PYSEC-2025-41","PYSEC-2026-139","PYSEC-2026-1856","PYSEC-2026-1970","PYSEC-2026-2286"],"reachability":{"kind":"production","file":"cosyvoice/bin/average_model.py","line":21}}}},{"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":"de756fb1c52748ae26a6ac923af60b5219ff625918c1d3a28f219891c6c53633"},"properties":{"dependency":{"package":"diffusers","version":"0.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2446","PYSEC-2026-40","PYSEC-2026-41"],"reachability":{"kind":"unknown"}}}},{"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":"4fcd30732e8850238f740316554ac36d78dca51480af4dcdfb52c1c311c6b3cc"},"properties":{"dependency":{"package":"hydra-core","version":"1.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-3850","PYSEC-2026-4221"],"reachability":{"kind":"unknown"}}}},{"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":"495a5045bee888d85b66cd638860e929250cccbe032721b4a67592fb4286f99d"},"properties":{"dependency":{"package":"modelscope","version":"1.15.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2663"],"reachability":{"kind":"unknown"}}}},{"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":"94dc4ce2f0f19818bce64e8b1eeeb2c221fa53c2000fd830e557ce3df5a0b5ab"},"properties":{"dependency":{"package":"onnx","version":"1.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-10","PYSEC-2025-148","PYSEC-2026-103","PYSEC-2026-104","PYSEC-2026-2239","PYSEC-2026-2240","PYSEC-2026-2241","PYSEC-2026-2689","PYSEC-2026-3587","PYSEC-2026-3876"],"reachability":{"kind":"unknown"}}}},{"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":"922cbb3f93cb331347e3744d55c0412fe0149f6370cc465f05052962ecd236d8"},"properties":{"dependency":{"package":"protobuf","version":"4.25","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-1805","PYSEC-2026-1806"],"reachability":{"kind":"unknown"}}}},{"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":"0d5c19cc2f1e2a1a72a1a9f20cb4cf291c446cae8b089e01ea4905f0dc719c28"},"properties":{"dependency":{"package":"diffusers","version":"0.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2446","PYSEC-2026-40","PYSEC-2026-41"],"reachability":{"kind":"unknown"}}}},{"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":"4c3e26a25d926e4017324d8a7bf79b1152a51da8bb15c233c008618aa485ad3d"},"properties":{"dependency":{"package":"hydra-core","version":"1.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-3850","PYSEC-2026-4221"],"reachability":{"kind":"unknown"}}}},{"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":"a9803a0787b651ca3688433fff48ad541751657d88c77fd752f37864949f4bfa"},"properties":{"dependency":{"package":"modelscope","version":"1.20.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2663"],"reachability":{"kind":"production","file":"cosyvoice/cli/cosyvoice.py","line":19}}}},{"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":"ecc350b44efa357d0d0cdfac806cd5f12922bff9a41f68014ee8294140efd910"},"properties":{"dependency":{"package":"onnx","version":"1.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-10","PYSEC-2025-148","PYSEC-2026-103","PYSEC-2026-104","PYSEC-2026-2239","PYSEC-2026-2240","PYSEC-2026-2241","PYSEC-2026-2689","PYSEC-2026-3587","PYSEC-2026-3876"],"reachability":{"kind":"unknown"}}}},{"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":"395556522d926e50f39ccdde1e7417af46f8074c0732a162666794ba6f84d229"},"properties":{"dependency":{"package":"protobuf","version":"4.25","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-1805","PYSEC-2026-1806"],"reachability":{"kind":"unknown"}}}},{"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":"ead2fa637c58802c5a1cc3329c65e2b385cf5b6bd12b5052160f6556ba801d6f"},"properties":{"dependency":{"package":"pyarrow","version":"18.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-113"],"reachability":{"kind":"production","file":"cosyvoice/dataset/processor.py","line":17}}}},{"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":"60d31a051760159631eaa9ba0e90c965120cf2c230f2b5ca78fdc144cd48fdda"},"properties":{"dependency":{"package":"transformers","version":"4.51.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-211","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-1977","PYSEC-2026-1980","PYSEC-2026-1981","PYSEC-2026-1983","PYSEC-2026-1986","PYSEC-2026-1988","PYSEC-2026-2288","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929","PYSEC-2026-4174"],"reachability":{"kind":"production","file":"cosyvoice/llm/llm.py","line":24}}}},{"ruleId":"D30","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":"4f178a6cdfa6623f4b343144e9efeda7e081319dab296889fdc36a1405408fb0"},"properties":{"dependency":{"package":"gdown","version":"5.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2158"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"7d43d59e87f95382fd2ee5623e1eda89efde6ba5f7da87dccb1c27b740e350ef"},"properties":{"dependency":{"package":"gdown","version":"5.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2158"],"reachability":{"kind":"unknown"}}}},{"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":"f9deb0b3e9568df1171bacf908174d514cb7e71041f1c1975b38340d1bde8fc0"}},{"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":"8dad959532650d574ce70b18c69211bff118ae21a62f7000ca9aa107f424fd3e"}},{"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":"c2e1c33b058c005e6250f1c0f084e946c06ff1870f1bdd4ba3f17649dd503141"}},{"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":"434a2ada5006a15d805952c5a6b9aa1627dfd116cb9daee3bb50e7d8619ed6bc"},"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"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"ecd31d0d2cd55e63e7d9a18c72c32bf7706df4d6280d67f655c3ea1d48c8460f"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"03c924b5523e849f51d1737587ffc7b4bfe8162efe49e63c76f71a5586f2efd4"}},{"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":"b1243765d1bf4e51f72a1e562f1b1a6b8939caf6146b277d16c038fdf217ea10"}},{"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":"1871c76aedebefcf8db93c88df85426f1112ffa109424fb027ab18de04d4c1d0"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"23f35820fc35be8d529d3485c9658724019a9612f3103dcd0a6164e82c1cf821"}},{"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":"a8698c5c4cc16b62f695621ca04ed3700c69823fc96c51c6303887e8df6653b1"}},{"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":"456d2c3f511799653c765ed1632fec68481d07b1aa9db4d76a6f5dab8c714fd8"},"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":"4f922ade00e1480db9bbc3fbf3b45b99a905f40b6c188e273d7867fc9c0f0f24"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"373e305f6001577651b42479d2cf4d60bd4ebf60635dcdbb799a1c0961be0633"}},{"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":"4e06f030203711ba4e812c1005e6d19a8a585e9bf94e200733bd447d341aa9e1"},"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":"1486506874bae703dc55ee2319e620fb8967874a6e7f0ce4e9ef4dc002eb37c9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"b017a030bde1e293fe6b4107f491820a69aedc373c13dfae39dbde5dbb0df6cf"}},{"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":"0982387e15aaf0c47a2b78b46d2d09f4cdf4cca54cc07d5ee2e4ff8bb187f067"}},{"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":"3c94ab50500ad71420b51fe28c01a5ec2490f18eb85de2fd0ccbd476e14e7aa9"},"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":"1ab0c57935e004109d7a660093fdc08ad9302fa7dd95c44db870535aa6cff6bc"}},{"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":"27ba2119d7479e4a2945de6f9437c2b1fc81741b6a2fd78f6ea5992cb2525590"},"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":"0b0a88d5bc576369046462e48c8677f72d59b73cbce0def75474953842be589b"},"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":"6d26c2957ae506438084ab0fcefd19658a359c4df6c31880d6c844af6c45bd73"},"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":"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":"runtime/triton_trtllm/offline_inference.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4299db2b969b5afca0401c2971092f92f7773ba3b64b464b5b5329b746f5e865"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 1 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: runtime/triton_trtllm/token2wav.py (2 orphaned of 68 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; 68 of the 78 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":"runtime/triton_trtllm/token2wav.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4636bb78e5d4630a24e1df466fa6072404c89057365e497f236eb6d461f7e414"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: model.py \u2194 flow_matching.py: \u0060cosyvoice/cli/model.py\u0060 and \u0060cosyvoice/flow/flow_matching.py\u0060 change together 70% of the time (21 of the 30 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 21 shared commits counted here, the most recent 3 are \u00605bc4b23f\u0060 use amp in flow; \u00609b052a94\u0060 fix lint; \u00606dd68b9d\u0060 add vllm inference \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cosyvoice/cli/model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5e327ae29e44c0e3e70018e2f3814e1e8dcc2c42831314b12ac43de72c9648"}},{"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":"e98dd739bc1bd197648941340c5407e70135edcd93c702ed9e8da54b5c0e1157"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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 3 application file(s) sit at the repository root beside the build and tooling files (\u0060example.py\u0060, \u0060vllm_example.py\u0060, \u0060webui.py\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/lint.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060requirements.txt\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"requirements.txt"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea225f8356846d84bbfadf416ac2ef55b5c7044e420f90a9d544ca3d435c540"}},{"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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.request(\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":"runtime/python/fastapi/client.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1dc1627894b513807ce17316621a4cdba60844d5fbe1e37ff5139ba3ed14505"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.request(\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":"runtime/python/fastapi/client.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9217625fe524006d809c7f23dd15b536a6c68910f19625ad6c84127a1fc262cd"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.request(\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":"runtime/python/fastapi/client.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de83a5a33b14ae3486723218791307a4d7021d9429fc0e0390a4697454b321e"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.request(\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":"runtime/python/fastapi/client.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"630488682d0c7d8a2a27339b05fecf269ef6d794d10f64624524ac71ebecf3fd"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\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":"runtime/triton_trtllm/client_http.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab34dd9741a76e646fe10d8f839ebc151869886c8cb9674948d45a08ec0a05f"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"154bf4a7a188c4353d031eb85de3b937e6204e4cbc4ccf046f1b4e10a2296147"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\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":"runtime/triton_trtllm/offline_inference.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc8c050de50dddaeec5a5dc543bf43ab90ef8719054b2c7f6d2a68b2dfe0337"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not os.path.exists(flow_decoder_estimator_model) or os.path.getsize(flow_decoder_estimator_model) == 0\u0060 appears character-identically in 5 files \u2014 cosyvoice/cli/model.py, runtime/triton_trtllm/model_repo/token2wav/1/model.py, runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py, runtime/triton_trtllm/token2wav.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":"cosyvoice/cli/model.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8035446f7d8d3df725b8921e0858e81c894da0cc404a81c19ceb24d8f3326e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not os.path.exists(spk_model) or os.path.getsize(spk_model) == 0\u0060 appears character-identically in 5 files \u2014 runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py, runtime/triton_trtllm/model_repo/token2wav_dit/1/token2wav_dit.py, runtime/triton_trtllm/model_repo_cosyvoice3/speaker_embedding/1/model.py, runtime/triton_trtllm/token2wav.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":"runtime/triton_trtllm/model_repo/speaker_embedding/1/model.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3af55819ebc7ecf54cbaa9d83ebdafe713c1f9b725c034aca4ce3b39266dd5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not os.path.exists(trt_path) or os.path.getsize(trt_path) == 0\u0060 appears character-identically in 2 files \u2014 runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py, runtime/triton_trtllm/token2wav_cosyvoice3.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":"runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdbfae8371d0cf63eeb4b39732eb46360bcff59fa3b7325e94c95422655aa62"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.gradient_checkpointing and self.training\u0060 appears character-identically in 2 files \u2014 cosyvoice/transformer/decoder.py, cosyvoice/transformer/encoder.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":"cosyvoice/transformer/decoder.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea28e34bc430753f15da96f7865e694e5900512e33e9ffd9a91975e3895e29b5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token_str.startswith(\u0027\u003C|s_\u0027) and token_str.endswith(\u0027|\u003E\u0027)\u0060 appears character-identically in 2 files \u2014 runtime/triton_trtllm/infer_cosyvoice3.py, runtime/triton_trtllm/offline_inference.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":"runtime/triton_trtllm/infer_cosyvoice3.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"faafbdae024c8f82d9f38f90853cc6c48b18d7648b15c06ec51e0b235a73a6cf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 365 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":"runtime/triton_trtllm/token2wav_cosyvoice3.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbfc18bc951e560af0e9be736b3f274829a89d0f8ac63108a5114bc6cd42cb5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 95 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0b4c1b59a632615be23f9a561fc307c98303506aa79f7fca8b2faa3bd426df"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 127 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"079bf6134c54ca4933514cd581a065a2b8a700acd720944f4908f63415d916ba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 138 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d1b4510ef25da7d2aa8d5dc9dfedf2e6910ce0660e2b6e148473f9bb04820b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 143 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbdb1a7d89ad9bebfd192c3fdaf6c8790b0097c0a52263911264503a59b5716"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 187 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20f814ffd30a39cb375cfa9c3c79537a622f4b16ae2375705253f0778482ea8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 209 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"010ee9c8d0843e799fb70391ae9a85d757648d8d70f5d938c2397d001253654b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 210 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c23f8e9f597a107c8bbb4daa81fa3a3dd568f0c50075798a352631c0108851e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 216 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc6589ed56a12614e52adcf68b57df7aa97c8b9597479292cbf06e9236fd1d4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 225 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"5912d4898016c0066d245c269b9c935c80b9d255056cf0e121ac07f17d0cdcc7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 226 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd02d019db651e6845d3bee13393cd12688fe62eb741a064a9a655abaf8b366a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 227 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"507d2a89d003d9966b5b383fbfd9b4c80a6b515ac9d41491cdee4abcf65eca37"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 236 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cc43926f25986b38dd8423485793bc41986aa97877542b9f4ded43869c27d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 284 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1252ed975c06577db7d06623ea8550de624361d2e2a7057c7428e4361710c8c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 285 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b3388042dbfe86c15c54b654bca90eaa8531b1638643957e2c93d511084cc2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 340 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"694e6998a9db5e0dacb5b97548b59ae6e97092a09e185a26675420ebf863a546"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 341 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":"runtime/triton_trtllm/scripts/convert_cosyvoice3_to_hf.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"1126983394325469c0240a2187b8af8954fa9de643ebe782db6b89302eb92076"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 107 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":"runtime/triton_trtllm/model_repo_cosyvoice3/token2wav/1/model.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2941835a4ac55b39916e3501d26125ca2f0be29e8b58086dc4b0178bc11b4910"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 91 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":"runtime/triton_trtllm/model_repo/token2wav_dit/1/model.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac12ccc7159cd8020282446e86438f85977d6fde85cd911a18d1c2e137983c7b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 183 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":"runtime/triton_trtllm/model_repo/token2wav/1/model.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"6711d2f4839f059548c06f2254888e49a6c0702669626ef86e5f9a7b74807f9f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 49 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":"cosyvoice/flow/flow.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"522b072f72e7fb0f10c7699213a4e11fea3fc4dfa7d8a39b4d6cc309d1b9ab7f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 174 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":"cosyvoice/flow/flow.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"86aeda0c17f9c28d1caf8b845c8d791d532fee2c141ed31399bfd246f8921929"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 309 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":"cosyvoice/flow/flow.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a12bd2da7427e195c037d16b3728775581fa2aab1e3f9d7657ac5ed438ab2e1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_remote_reward\u0060 returns \u00600.0\u0060 when \u0060(KeyError, IndexError, TypeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/grpo/cosyvoice2/reward_tts.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"629ee91c31629d569bf7f9b318ba483a33111415ddb3c5900ba5715aa2b8d9ca"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.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-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"Improper Certificate Validation","shortDescription":{"text":"Improper Certificate Validation"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-330","guid":"f811ddf9-2e54-865b-9c76-f97905849790","name":"Use of Insufficiently Random Values","shortDescription":{"text":"Use of Insufficiently Random Values"},"helpUri":"https://cwe.mitre.org/data/definitions/330.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-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-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-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-942","guid":"a5e9f9ae-e5c1-215b-b5ef-9b85aa6b4828","name":"Permissive Cross-domain Policy with Untrusted Domains","shortDescription":{"text":"Permissive Cross-domain Policy with Untrusted Domains"},"helpUri":"https://cwe.mitre.org/data/definitions/942.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":63,"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."]}]}