{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"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":"webui.run_train_model (cyclomatic 43): webui.run_train_model has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cc97c93bbcde1972f7f1b86d0f876e2a734b7f4ceaa50caf9f0ace91f72691"}},{"ruleId":"D1","level":"warning","message":{"text":"train.train_and_evaluate (cyclomatic 30): train.train_and_evaluate has cyclomatic complexity 30 (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":"train/train.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a366eff38a717c3bf6c1c1792e54155f12301cc5428e4b1af1098fb58c2532"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.get_index_path_from_model (cyclomatic 23): utils.get_index_path_from_model has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/vc/utils.py"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"995a1c048f7eb83d81706681634aaecf784462d669845181ad7f4de3f0646c1a"}},{"ruleId":"D1","level":"warning","message":{"text":"Slicer.slice (cyclomatic 22): Slicer.slice has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"train/dataset/slicer2.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c776d1e6297ede3a8bf9e3e8ec798c6c757f27461034aac9a10c102f2d2d73"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.main (cyclomatic 20): cli.main has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/cli.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be05b0791bc724e992c0e4deb510018a035436ac78ffbdb0fad2d58f744fcd2"}},{"ruleId":"D1","level":"warning","message":{"text":"Pipeline.vc (cyclomatic 20): Pipeline.vc has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/vc/pipeline.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a257cb4019bb6b3b52db9a206212fba2a07250801201d4309b62b5ce8c84f779"}},{"ruleId":"D1","level":"warning","message":{"text":"train.run (cyclomatic 20): train.run has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"train/train.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6610a5f2cb033e8cc4b3f50196547f9a1de22ddde3b36e463aa130d0b347beb2"}},{"ruleId":"D1","level":"warning","message":{"text":"VC.vc_multi (cyclomatic 19): VC.vc_multi 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":"infer/vc/modules.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6349ca9a12d92ad60da3b85bd909420fb17dd81d0dfe44c28bdbeecd1717eda"}},{"ruleId":"D1","level":"warning","message":{"text":"webui.wait_train_processes (cyclomatic 19): webui.wait_train_processes 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":"webui.py"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"932392b6bf21d0e976130720467271e0057ec90a06b49e170e723777d01e03e2"}},{"ruleId":"D1","level":"warning","message":{"text":"rvc_worker.run (cyclomatic 18): rvc_worker.run 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":"RVCRealtimeVST/worker/rvc_worker.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7bcbf58d64221c5784d04a272607162a03c4a22d4af30cf05f53fc2f76416a"}},{"ruleId":"D1","level":"warning","message":{"text":"VC.get_vc (cyclomatic 18): VC.get_vc 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":"infer/vc/modules.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d250b48ac29e67dea044433281b1f49f248b4b62500aa8a2a7d012877da1ed9"}},{"ruleId":"D1","level":"warning","message":{"text":"Pipeline.pipeline (cyclomatic 18): Pipeline.pipeline 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":"infer/vc/pipeline.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"905f2b84a2f6c7249c335aac7f7183df2e3e9db2f000c013619657ee6b7b48bd"}},{"ruleId":"D1","level":"warning","message":{"text":"webui.train1key (cyclomatic 16): webui.train1key 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":"webui.py"},"region":{"startLine":1514}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b5ad48b405baa8f5664e341f8289421f30b1cbc0a60c0f29b2c553e44c0f81"}},{"ruleId":"D2","level":"warning","message":{"text":"webui.run_train_model (cognitive 80): webui.run_train_model has cognitive complexity 80 (threshold 15). Drivers by points: ternaries 22 (43 pts), if/else 21 (25 pts), loops 5 (11 pts), boolean chains 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c54447dd996d0548fd2699f8b55186d16f7b8ac2cad783d0cbd9bc1c630138"}},{"ruleId":"D2","level":"warning","message":{"text":"train.train_and_evaluate (cognitive 74): train.train_and_evaluate has cognitive complexity 74 (threshold 15). Drivers by points: if/else 32 (66 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 36). 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":"train/train.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af84b6bd28b2384b128d436b04e458431b11c008bfee1d26c0f276dac0c5c09"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.get_index_path_from_model (cognitive 53): utils.get_index_path_from_model has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 5 (20 pts), if/else 6 (19 pts), boolean chains 7, loops 3 (6 pts), error handling 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/vc/utils.py"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ac6946294bc95378486f0d03e1fc8bf2df7235c17f69512374c972de3b099f"}},{"ruleId":"D2","level":"warning","message":{"text":"Slicer.slice (cognitive 41): Slicer.slice has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 4, loops 2 (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":"train/dataset/slicer2.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2144fc5348f8188cda286feffab38bb518c8e4799df3a726c0125ab14157933b"}},{"ruleId":"D2","level":"warning","message":{"text":"train.run (cognitive 35): train.run has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23 (33 pts), error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"train/train.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee579ed77605fd1c0a4d03c04b6703639f98c12025e5f8875a443e9b1a93a60"}},{"ruleId":"D2","level":"warning","message":{"text":"preprocess.preprocess_trainset (cognitive 34): preprocess.preprocess_trainset has cognitive complexity 34 (threshold 15). Drivers by points: error handling 3 (12 pts), if/else 4 (10 pts), loops 4 (10 pts), boolean chains 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"train/preprocess.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efaeb1038aa8619c64c68dd59bcb7feae96d9aeb4f8d9bf6b9c1454db48bf7b"}},{"ruleId":"D2","level":"warning","message":{"text":"webui.wait_train_processes (cognitive 34): webui.wait_train_processes has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 5 (12 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"117f3fc683200cff2fb3bfa69be96806508ddf5114a0ddff213e6c017763e431"}},{"ruleId":"D2","level":"warning","message":{"text":"VC.get_vc (cognitive 32): VC.get_vc has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (25 pts), ternaries 4, boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/vc/modules.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffebf4292ea0923c8663adb6aa9876834168b9c61aed346bb26b62d7fe5a128f"}},{"ruleId":"D2","level":"warning","message":{"text":"VC.vc_multi (cognitive 29): VC.vc_multi has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6, error handling 3 (5 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/vc/modules.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de891fb8213743c3c8ce26fac2ada14288f006dd6d3238f658ab594147a6672"}},{"ruleId":"D2","level":"warning","message":{"text":"rvc_worker.run (cognitive 26): rvc_worker.run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 3 (5 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RVCRealtimeVST/worker/rvc_worker.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"149c9a271886e4c5ac187aa79854a97998c3009d78f6158bc8055e9f1ad4420d"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline.pipeline (cognitive 26): Pipeline.pipeline has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (13 pts), loops 3 (5 pts), ternaries 2 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/vc/pipeline.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"9916f0c24a127355032214855fb262769f34b83cca3b75446f26446140cb5eaf"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.main (cognitive 24): cli.main has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 6, loops 2 (4 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/cli.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"19080e77bb3a59acd9d5982d35c39feb2be477ead719086d29ccccef8a8e7eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneratorNSF.forward (cognitive 24): GeneratorNSF.forward has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/module/models.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3bd89720ddbf9ce5f08d2671f4fb8111012d0c5152ac2cd116147e931814f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline.vc (cognitive 24): Pipeline.vc has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/vc/pipeline.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f524e880ff164dc8dd0c023496cc1281601196a20b961ff2782e6e7dc2c88390"}},{"ruleId":"D2","level":"warning","message":{"text":"webui.train1key (cognitive 23): webui.train1key has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 4 (7 pts), error handling 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":"webui.py"},"region":{"startLine":1514}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1e2f0aec5bb3935bc3c2c6753303aa456f8a5344c6a250d3729578eb817814"}},{"ruleId":"D2","level":"warning","message":{"text":"RVC.infer (cognitive 21): RVC.infer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 2, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/rtrvc.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c0e7e50e8bea91da4d2f6b46a271f0e265f5788fd747c4c0913064c3d8ec8a"}},{"ruleId":"D2","level":"warning","message":{"text":"webui.run_extract_f0_feature (cognitive 20): webui.run_extract_f0_feature has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1fb48e8dbe7ab16a91747c5336ab7d4e0ee7b5dc147268c84123d31481b82d"}},{"ruleId":"D2","level":"warning","message":{"text":"webui.change_multispeaker_page (cognitive 19): webui.change_multispeaker_page has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 1 (4 pts), loops 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"af16b8c2f54df78ec11417a83d68295b7477d031af6178ba6b6e9da473526ec7"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.collect_jobs (cognitive 18): cli.collect_jobs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, ternaries 2 (3 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/cli.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca92c4f95a67c5ce02cb0d0989b24f58e6a428e51fb4f83dc808c6b2a2567d4"}},{"ruleId":"D2","level":"warning","message":{"text":"FeatureInput.go (cognitive 17): FeatureInput.go has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 1 (3 pts), loops 1 (2 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":"train/dataset/extract_f0.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c48e8f329f5b0816d7cfbcf6e78474618e0c8e5c20d52c29e0d176b98c4beba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./webui.py: FileTooLong \u2014 1484 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 984 over it, 2.97\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7b9ce656cfd7f6b880fb3da6fdcfb60aa3a9a94e70950993113f60bcdc2085"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: module/models.py: FileTooLong \u2014 893 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 393 over it, 1.79\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":"infer/module/models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed32a1431f6e1dc59beba338d4a369ef1d35ecbbe65e48159edbdb4d8172ac5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./realtime_gui.py: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 298 over it, 1.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"realtime_gui.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"496b1f78b9d09c2071c5e2baa588f884a6a6ed3d8aa1f8f7613bbee13285e493"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: train/train.py: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 17 over it, 1.03\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":"train/train.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcce60dcd93f4edbc84d2fa44da02db56fc390c7577cfd7258b6e47c152ac4db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): train/data_utils.py:155-221 | train/data_utils.py:348-400 \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":"train/data_utils.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"685ef8cce874e31fcd88f08417777c57f215f4ee8923eaedb4e311e21fab845f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): infer/module/models.py:657-678 | infer/module/models.py:847-867 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/module/models.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c1760069f37256c00089c600c08318f2314726de0862b57dd5e6ebebf0d689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): infer/fcpe.py:52-79 | infer/fcpe.py:82-111 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/fcpe.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17ff603c9a34dd4cf57815fe3990f9269be5886977365feb69561a064e0796b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): infer/module/models.py:553-614 | infer/module/models.py:761-819 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/module/models.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe35844baee5a10d0c107415ca7b2edd01accb6257aad5cc40ffbb562532162e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): webui.py:905-936 | webui.py:1046-1077 | webui.py:1478-1507 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 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":"webui.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb7079c5302c8dc40be5299d42bf2dbf13481a9dd5ef36116b32a3e8ccf91e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): infer/module/attentions.py:26-60 | infer/module/attentions.py:93-138 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/module/attentions.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3979e3430f60c1cd4445ee868222233799920067a075e2d3cdcae10c5ada2058"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): train/data_utils.py:57-82 | train/data_utils.py:266-282 \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":"train/data_utils.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d81c7131a7820ef1ebfef9fa875d569202778d9d077c6a5e6f8ad6f0f35aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): infer/module/models.py:633-644 | infer/module/models.py:828-836 \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":"infer/module/models.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fb0c4022a0d2463656f81334a419c9531bd59197d56683291f82ea783385de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): train/utils.py:243-262 | train/utils.py:266-290 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"train/utils.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b409b7365a2bc0c311a9778b1dacd509aafe5c6a2e6fc6a9816cdbda4d6477"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): infer/module/attentions.py:328-352 | infer/module/attentions.py:355-374 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/module/attentions.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"838b5f730b72cf28bc7fa4ee5e2dfcf88fab1835b37d854d8cf90082dbc2a8a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): infer/rtrvc.py:191-205 | infer/rtrvc.py:208-223 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/rtrvc.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a3df4e4a896d203c7bd0d6d34f25cec8a19b65a45d9917c34ef042ee37c3fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): infer/audio.py:108-125 | infer/audio.py:132-154 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/audio.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0f4fc744e451ef6e431f7f4fae6a92bc106dfb3dc5744abf59c4306ee8828a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): infer/vc/modules.py:36-54 | train/process_ckpt.py:16-28 \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":"infer/vc/modules.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f680f3c5f783f4385945d2df149820f5b7d41cbef6120a0ffc585d297f4dc63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): train/data_utils.py:35-49 | train/data_utils.py:244-258 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"train/data_utils.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb128c6fe3fab92723493f4f97b2719aa63b7f2249c7c4a61407cf0bce13924d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): infer/module/models.py:930-938 | infer/module/models.py:960-968 \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":"infer/module/models.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a58f87e46734f7fb0c1c84cc3e5df4d9c4bf8e975893f5a3dfc08fd9176d494"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): infer/vc/modules.py:29-32 | webui.py:640-643 \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":"infer/vc/modules.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb74791dc7f63b73dea793f06d2f66ddd2cdafa229f9e11b5735c6ffef5509bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): train/data_utils.py:100-139 | train/data_utils.py:293-332 \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":"train/data_utils.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"163b25e4142b84ead666b76baac298d56f6fb922bd7422e561ca7e6bde459490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): infer/module/models.py:705-734 | infer/module/models.py:894-923 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infer/module/models.py:705\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":"infer/module/models.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"333a757d253103f6b13c1b90a2085b46ccab894eb1302362d14b639706a68c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): infer/module/models.py:556-582 | infer/module/models.py:762-788 \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 \u0060infer/module/models.py:556\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, \u0060infer/module/models.py:554\u0060 calls \u0060isinstance\u0060 and \u0060infer/module/models.py:761\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":"infer/module/models.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebd2524361656d89e8d62fa2a841b997e985a67b4cd3a7359deab47589309bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): infer/module/models.py:595-614 | infer/module/models.py:800-819 \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 \u0060infer/module/models.py:595\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":"infer/module/models.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06abbd3ceec342849a82d55f6935021e16c32240a656d141adb452ea90c59ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): webui.py:905-923 | webui.py:1046-1064 | webui.py:1478-1496 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e74bc2c593a06fb5e33b2c7b3672513ea88c63f5e0d019a91e2c0fa1dc4539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): webui.py:1579-1597 | webui.py:1608-1626 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060webui.py:1579\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"7447390d47289310f2d6e4a94d35b8978709bb5419ab161c5624761f7f38c946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): train/data_utils.py:183-200 | train/data_utils.py:371-388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060train/data_utils.py:371\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":"train/data_utils.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cbd57dbca58784c54b76a815a86015732414fa6bb4f07f7008dfc15efd1bf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): infer/module/models.py:213-228 | infer/module/models.py:459-471 \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 \u0060infer/module/models.py:213\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":"infer/module/models.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d764777c5cc3237be3ff60c1695b211b94ce47c7d30511e08b25b91b91bad581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): infer/module/models.py:941-955 | infer/module/models.py:971-985 \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":"infer/module/models.py"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b9c63025f8b1248142805b776720ae3c7301e294309ac93cc3731e90885aff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): train/data_utils.py:64-78 | train/data_utils.py:271-281 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"train/data_utils.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ed459a777aac5510a59738eb63170896e47131db83ea2216d3261e880163d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): train/utils.py:37-51 | train/utils.py:126-140 \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":"train/utils.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce498f362b85f52edc54baca88f9904c72bf7e51c92a63fd6a7527c1a7ad3a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): infer/vc/pipeline.py:81-94 | train/dataset/extract_f0.py:78-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 \u0060infer/vc/pipeline.py:81\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":"infer/vc/pipeline.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5023e8669e39e700a0ce398413138025866d445bf94dace52457920dec6b881a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): webui.py:1376-1389 | webui.py:1535-1548 \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":"webui.py"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da9fdb97378507decf590a39fbb14d2f4465fd28da7c5ca0126d079d5447566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): train/data_utils.py:155-178 | train/data_utils.py:348-371 \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":"train/data_utils.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51786cc1bb490394766c9a8a1e104da20682f1cad831e52505cf664b3a63eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): train/dataset/slicer2.py:120-132 | train/dataset/slicer2.py:138-150 \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":"train/dataset/slicer2.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2d0318b1b1954638bda65e6b37b4a087a4d39a14a2594742dd105da28a8f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): train/utils.py:243-253 | train/utils.py:266-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060train/utils.py:266\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"train/utils.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d22eb9640c0b609a038aa35349f9d87aa52bd66238eb8bf214f2f08df1ef33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): webui.py:926-936 | webui.py:1067-1077 | webui.py:1498-1507 \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 \u0060webui.py:926\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"f524c8e04f9ff139c1a0ad1fbf772d76f0a1c3c3c88f0673db6df1c06fc3a97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): webui.py:1317-1327 | webui.py:1336-1346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060webui.py:1317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webui.py"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"866ad3a7b38d4986905a9432dde0331ae4aaae76b9e871e4138da1e8f68649ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): infer/module/models.py:657-666 | infer/module/models.py:847-856 \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":"infer/module/models.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89ba98f1d8e1141f01ddff06ee8e875d34f9c9e7022a704eaac1f4b63991c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): train/data_utils.py:23-32 | train/data_utils.py:232-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"train/data_utils.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d5c82b05a94ab9dc5d7a3b043c5b5c58eefb1519701b7bd72835c188ad9097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): infer/module/models.py:1007-1015 | infer/module/models.py:1086-1094 \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":"infer/module/models.py"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac59c82737b638c22471cf8d3835f9aa48b48e443770ab0fd8940a8f68dd685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): infer/fcpe.py:58-64 | infer/fcpe.py:93-99 \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":"infer/fcpe.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"452a0598afdd5e69e987c59b387108083480b081124ad791e2725298db45539b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): infer/module/models.py:197-203 | infer/module/models.py:426-432 \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":"infer/module/models.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce5965029b1a65f6e4c5d5b1bbe835d0883113c152fdb8452d075acefa2c6ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): train/preprocess.py:203-209 | train/preprocess.py:215-221 \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":"train/preprocess.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"be24d6637b646d2ff497db766a38858b29e65d1e0ab341371e058b8d36db0efc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): train/train.py:373-379 | train/train.py:444-450 \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":"train/train.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b1f41389a9208eec3f6e2f071918aea43c23adb92a7001fcdc5b4a409eade1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): infer/fcpe.py:67-72 | infer/fcpe.py:102-107 \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":"infer/fcpe.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c5ef2c692084a769ab4e6bcc5e4b20b99818be3a7eda9ce868738c937e0016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): infer/module/transforms.py:122-129 | infer/module/transforms.py:133-140 \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":"infer/module/transforms.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c95796efff2d7271b4bff3092663f05e9e1d36db09ddd7d33e4db57a11a624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): infer/rtrvc.py:184-188 | infer/rtrvc.py:201-205 | infer/rtrvc.py:219-223 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/rtrvc.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"551a9b452acce28cd1dd2902971deaaaa4727453684a217ffd259ff7faef5311"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): tools/pymss/modules/vocal_remover/vr_mlx.py:8-18 | tools/pymss_core/modules/apollo_mlx.py:14-24 | tools/pymss_core/modules/bandit_mlx.py:16-26 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:279-289 | tools/pymss_core/modules/demucs_mlx.py:20-30 | tools/pymss_core/modules/mdx23c_mlx.py:22-32 | tools/pymss_core/modules/scnet_mlx.py:17-27 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5ad1e1d519c20f538624997e5a83e60d0f945066598e26a228d3ed72ef4e3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): tools/pymss_core/modules/bandit/core/model/bsrnn/wrapper.py:105-120 | tools/pymss_core/modules/bandit_v2/bandit.py:80-95 | tools/pymss_core/modules/demucs4ht.py:263-278 | tools/pymss_core/modules/look2hear/apollo.py:310-325 | tools/pymss_core/modules/mdx23c_tfc_tdf_v3.py:126-141 | tools/pymss_core/modules/scnet/scnet.py:202-217 \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":"tools/pymss_core/modules/bandit/core/model/bsrnn/wrapper.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"17cceac9fd6034f9ec0e1a94b99c2c351357390bceebd665b612305c820e2bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): tools/pymss/modules/vocal_remover/vr_mlx.py:156-194 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:555-583 | tools/pymss_core/modules/demucs_mlx.py:277-301 | tools/pymss_core/modules/mdx23c_mlx.py:226-252 | tools/pymss_core/modules/scnet_mlx.py:206-226 \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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"1727396e876197b95da1ba4b81492b9a7d4322d4b44a5a9eef66c14ae82b9aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): tools/pymss_core/modules/demucs_local.py:274-309 | tools/pymss_core/modules/legacy_demucs.py:595-631 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be6f2465cb2dad4f0f538c2e684911b7f6c859889924ae3cd8a781d681778ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): tools/pymss_core/modules/scnet/scnet.py:228-266 | tools/pymss_core/modules/scnet_mlx.py:369-406 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/scnet/scnet.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74ed7483c114634c152b54a0a39f84ae66224333a82b0e3b389af91a59970c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): tools/pymss_core/modules/bandit_mlx.py:88-109 | tools/pymss_core/modules/mdx23c_mlx.py:82-105 | tools/pymss_core/modules/scnet_mlx.py:78-99 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"918da48ef3e7450fd0f231cb3fbc703058b24c333e9cf5fc7e740605062da83a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): tools/pymss/modules/vocal_remover/vr_mlx.py:308-340 | tools/pymss_core/modules/scnet_mlx.py:269-300 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b11dcb47647c8b0a340fc1b4781629e44192c5305edb856d940cace007a8f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): tools/pymss_core/modules/demucs_mlx.py:393-410 | tools/pymss_core/modules/demucs_mlx.py:414-435 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_mlx.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"71182b16b1b64af91c8443b32f06851acdfc5a18032c55f2e6d8f3c5cb9ca227"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): tools/pymss_core/modules/demucs_local.py:229-249 | tools/pymss_core/modules/legacy_demucs.py:546-570 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7a7ef48f125b4a1395b3ca5f10064f04f87b0a473bf902036fefd16e1a1e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): tools/pymss/modules/vocal_remover/vr_mlx.py:106-124 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:368-382 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee253d0190f856281d0b6ef0291136ab1bf7532365faf35b94dfa88d7b3f0054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets.py:10-28 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets_new.py:9-23 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2450c8f5c132eb0a8b6eaceef3342956aa38808718985eb9b1662e444cc3784d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): tools/pymss_core/modules/bandit_mlx.py:54-84 | tools/pymss_core/modules/scnet_mlx.py:45-74 \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":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38cba7d5f75005cfacebf59d2f4061020d345554d378f7735bf6a9c027e6da7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): tools/pymss_core/modules/demucs_local.py:577-591 | tools/pymss_core/modules/demucs_mlx.py:475-489 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"0287b42c8ac9546a96779c24b50cba6c9ebefd0ebaa439fa929f3570a77a2a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): tools/pymss_core/modules/demucs_local.py:166-185 | tools/pymss_core/modules/demucs_mlx.py:311-335 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d484e23b28cfbe06239f8a20681dc155c3ef476932382646f577c0a4978856"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): tools/pymss_core/modules/apollo_mlx.py:52-65 | tools/pymss_core/modules/demucs_mlx.py:83-98 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/apollo_mlx.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"871a721cfe937fdc514ae99cb86835e0d8fe09bb80b9c74f8d4a3b5cd743f338"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): tools/pymss_core/modules/bandit_mlx.py:127-141 | tools/pymss_core/modules/demucs_mlx.py:194-208 | tools/pymss_core/modules/scnet_mlx.py:162-175 \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":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a9d9f88d2c98d686b160b4f6ed09016483d72a738af7125b8f14bbd124f6fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): tools/pymss_core/modules/legacy_demucs.py:173-201 | tools/pymss_core/modules/legacy_demucs.py:307-335 \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":"tools/pymss_core/modules/legacy_demucs.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"187dd477866c0e91b12be0932bc13dee27fbbc72dd16ef7f5a3e40ce02fdd349"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): tools/pymss_core/modules/demucs_mlx.py:439-454 | tools/pymss_core/modules/demucs_mlx.py:458-471 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_mlx.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"9379d52816f4c842da48e05d9925e584cb4d772b520277a3877ac391580ea601"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): tools/pymss_core/modules/scnet/scnet.py:68-80 | tools/pymss_core/modules/scnet_mlx.py:236-250 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/scnet/scnet.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd001e7c2de63d1ad02cea1501804bdc95532cfa5392b97a090eb4c91a10bfea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): tools/pymss_core/modules/bs_roformer/bands.py:330-355 | tools/pymss_core/modules/bs_roformer/bands.py:358-375 | tools/pymss_core/modules/bs_roformer/bands.py:378-397 \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":"tools/pymss_core/modules/bs_roformer/bands.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac68c1c3c366372ce44cd28b65e961b148502e090c36bca25e0247e0aff7160e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): tools/pymss_core/modules/bs_roformer/mlx_roformer.py:328-338 | tools/pymss_core/modules/mdx23c_mlx.py:164-174 | tools/pymss_core/modules/mdx23c_mlx.py:194-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 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bs_roformer/mlx_roformer.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c4d0a1712a3231e4b74785df7356d7d613a63ecb33c786d66b4a4664218b33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): tools/pymss_core/modules/bs_roformer/common.py:313-322 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:605-615 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bs_roformer/common.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b3d569331034c05aff770538ed7cee83647b4548ae65601d1d1faf64e50006"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): tools/pymss/separator.py:352-377 | tools/pymss_core/checkpoint.py:25-43 \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":"tools/pymss/separator.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"5606eec88a6cf8ea4a65ea2a21192c860ce8683d20bf9023c22ec09d2c836c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): tools/pymss_core/modules/mdx23c_mlx.py:146-160 | tools/pymss_core/modules/scnet_mlx.py:144-158 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/mdx23c_mlx.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc2a382c1da6b1ab7c3fb7d86016db48ecd14f58f9d6a2a4d27bc3b11219fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): tools/pymss_core/modules/bandit/core/model/bsrnn/core.py:137-171 | tools/pymss_core/modules/bandit_v2/bandit.py:44-77 | tools/pymss_core/modules/bandit_v2/bandit.py:236-274 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 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":"tools/pymss_core/modules/bandit/core/model/bsrnn/core.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6e4314e73f84a4e46fdd34c85a11ed7d07b7808f2b71d41c0790d3850fad90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): tools/pymss_core/modules/bs_roformer/bands.py:401-425 | tools/pymss_core/modules/bs_roformer/bands.py:512-535 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bs_roformer/bands.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2d5f31836b1a615d0f68d2cc515adca470f3fd42287be880a7e0b850fef464"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): tools/pymss_core/modules/bandit_mlx.py:145-157 | tools/pymss_core/modules/mdx23c_mlx.py:210-222 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47413b33ef852920f478243e1bf27b893bc8c6944e341f3ea9b0f2b73ce4e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): tools/pymss_core/modules/demucs_local.py:254-271 | tools/pymss_core/modules/legacy_demucs.py:575-592 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25eafb05a4b9fde20d6102d08bbc09a1d01f4be429bd2ef0c09d6011e02b8cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): tools/pymss/separator.py:437-450 | tools/pymss/separator.py:454-461 \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":"tools/pymss/separator.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfed29b4695008cb56fdc94f91ea7c2592bcea3e7068ad05fb63bdb05042b470"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): tools/pymss_core/modules/bs_roformer/mlx_roformer.py:309-324 | tools/pymss_core/modules/demucs_mlx.py:141-155 | tools/pymss_core/modules/demucs_mlx.py:159-172 | tools/pymss_core/modules/demucs_mlx.py:176-190 | tools/pymss_core/modules/scnet_mlx.py:127-140 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bs_roformer/mlx_roformer.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"2579c99da73f5564c980412de6a5f060f15f7387a03ad6af903b0aaeadbf121f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): tools/pymss/utils.py:147-169 | tools/pymss/utils.py:173-198 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/utils.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37aaa61db5053c999d552be7f26fe2c07294a412280136a3cd381600729f146"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): tools/pymss_core/modules/demucs_local.py:29-43 | tools/pymss_core/modules/legacy_demucs.py:672-684 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bc82eb917559f1b972f88d490573cb0171f5ab6e0485ca2ba264f0b3f9915b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): tools/pymss_core/modules/demucs_local.py:47-62 | tools/pymss_core/modules/legacy_demucs.py:688-701 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecdb400c8521ac01962b305030b3faa2659516c0b9f138555054139165ceda1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets.py:31-48 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets_new.py:26-40 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f238721ed515eaad40f08e6d6cf71be59f11831b708de636eab474922f1180"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): tools/pymss_core/modules/demucs4ht.py:304-311 | tools/pymss_core/modules/legacy_demucs.py:878-887 \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":"tools/pymss_core/modules/demucs4ht.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"042cab0284d17fef64bc1405a6e62081dd24c886ebaa71f595cc06cdf82b6eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): tools/pymss/modules/vocal_remover/vr_mlx.py:91-102 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:355-364 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaf1574de8dfe173033f1bc8cee5c8d17b329a35e934caffa91713fd60e84ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): tools/pymss_core/modules/bandit/core/model/_spectral.py:31-44 | tools/pymss_core/modules/bandit/core/model/_spectral.py:49-62 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit/core/model/_spectral.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf6e68d4d60067b7fcd3b78624d1016cfcb3ce4b1c49bef3da6868b97989641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): tools/pymss_core/modules/demucs4ht.py:289-301 | tools/pymss_core/modules/demucs_mlx.py:102-108 | tools/pymss_core/modules/legacy_demucs.py:865-875 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs4ht.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4954f6706ed4a817812703d2094b7893266593d0c395ab0335d346d4729673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): tools/pymss_core/modules/legacy_demucs.py:160-170 | tools/pymss_core/modules/legacy_demucs.py:295-304 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/legacy_demucs.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"53efc867c08d4ec009cc69749d9ac8e906096aa4bd7ca14a679901da3d49f74c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): tools/pymss/modules/vocal_remover/uvr_lib_v5/spec_utils.py:199-212 | tools/pymss/modules/vocal_remover/uvr_lib_v5/spec_utils.py:216-222 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/modules/vocal_remover/uvr_lib_v5/spec_utils.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bea5a1937cbaec13eb4cdf5282b1929f94d084f120af5a9578613cbcfa7ea47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): tools/pymss_core/modules/_dsp.py:21-33 | tools/pymss_core/modules/_dsp.py:37-49 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/_dsp.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a832cb5500e872e3d9386743189a45c89cf529fd2174fc9a808ba3a87252286"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): tools/pymss/utils.py:602-619 | tools/pymss_core/modules/demucs_mlx.py:38-46 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/utils.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"320cd4ce0fbccbb02e8a0aef218a42bfd5837416c5703461b3ebf7b0b7fa103c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): tools/pymss_core/modules/bandit/maskestim.py:67-86 | tools/pymss_core/modules/bandit/maskestim.py:120-136 \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":"tools/pymss_core/modules/bandit/maskestim.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be4fcc0ca5f19fc583828db7e40b9b30acd73d55f3490c47b074d60a44b3006"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): tools/pymss_core/modules/bs_roformer/hyperace_segm.py:14-19 | tools/pymss_core/modules/bs_roformer/hyperace_segm.py:27-33 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bs_roformer/hyperace_segm.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d659c14fd7d6e7983b59c4365abf8a4deb84a7550f21b669801ee917fe5c5abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): tools/pymss_core/modules/demucs_local.py:313-316 | tools/pymss_core/modules/demucs_mlx.py:384-389 \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":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"261b23869aee444987de1574a02082483f8cd30c4f8d1a08ca6c61966e65bddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): tools/pymss_core/modules/apollo_mlx.py:132-139 | tools/pymss_core/modules/look2hear/apollo.py:236-243 \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":"tools/pymss_core/modules/apollo_mlx.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1fee47626f56983f7d40ddcad79ad504c9bc4424a0012402a7b65b69d2e01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): tools/pymss_core/modules/bs_roformer/hyperace_segm.py:273-278 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:530-534 \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":"tools/pymss_core/modules/bs_roformer/hyperace_segm.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e476cfc28c2c68940844563a2541ad2608d1b94f91ac287c8277d068fc0e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): tools/pymss/model_download.py:293-307 | tools/pymss/server/models.py:81-96 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/model_download.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c51a5ecb9c3e44bb81c91dab61bb74ffc3f8216d77c2fd2632bef725773b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): tools/pymss_core/modules/bs_roformer/hyperace_segm.py:52-55 | tools/pymss_core/modules/bs_roformer/hyperace_segm.py:125-128 \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":"tools/pymss_core/modules/bs_roformer/hyperace_segm.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfd7833a06070451aecdfba477ff76c6b8d5dd177206c7912ee115e7b2ef844"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): tools/pymss/ensemble.py:79-94 | tools/pymss/ensemble.py:98-113 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/ensemble.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0367041192c3ca3cd71f92e60eb16dd4e6a4c25b71ed26c5269c2576d31a39ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): tools/pymss/modules/vocal_remover/vr_mlx.py:128-131 | tools/pymss_core/modules/scnet_mlx.py:342-345 \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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c0f49dbf9477d0e4cb0248430dd15631ac8a39e5880df09e7801192c39138f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): tools/pymss/modules/vocal_remover/vr_mlx.py:203-209 | tools/pymss/modules/vocal_remover/vr_mlx.py:280-286 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"157f38ea26207652ccf55cf01af76137434dbdd3ffd128a0910c9efdac8584b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers.py:81-86 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers_new.py:49-55 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7e4cbb37547f006a3a57278be269245155ce765e196bee5132489813ca5f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): tools/pymss_core/modules/bandit/core/model/bsrnn/utils.py:150-159 | tools/pymss_core/modules/bandit/core/model/bsrnn/utils.py:172-178 | tools/pymss_core/modules/bandit/core/model/bsrnn/utils.py:186-192 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit/core/model/bsrnn/utils.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96643c6ee03ea1352697c3e996496347a410394932bd5698a30e9fa2d2a53db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): tools/pymss_core/modules/bs_roformer/mlx_roformer.py:522-526 | tools/pymss_core/modules/mdx23c_mlx.py:256-260 \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":"tools/pymss_core/modules/bs_roformer/mlx_roformer.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"a235f54bb17ecbc3f7d0acb1b9c80724240e66c6960788ee12459e7bb7a14720"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): tools/pymss_core/modules/demucs4ht.py:314-319 | tools/pymss_core/modules/legacy_demucs.py:890-893 \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":"tools/pymss_core/modules/demucs4ht.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"d274616c333a0f2d5016ed27490ac3d66d9d6d524cfe645fc7ce2d8971507865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers.py:61-65 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers_new.py:32-35 \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":"tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8a82abef4e91fa9aaf0ba537f1b0eaf179b5f2b750a0cd504d8c82ed8e9296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): tools/pymss_core/modules/bandit/maskestim.py:295-309 | tools/pymss_core/modules/bandit_v2/maskestim.py:98-109 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit/maskestim.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d69227536a269e0f523d19d522804fc68baa6d9bb882c16542803b84e880c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): tools/pymss_core/modules/bs_roformer/bs_roformer.py:103-111 | tools/pymss_core/modules/bs_roformer/mel_band_roformer.py:179-191 | tools/pymss_core/modules/mdx23c_tfc_tdf_v3.py:167-175 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bs_roformer/bs_roformer.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb83f75a3aea4f51ef665fa9719e8c75124c4bd2360fb8b86abd1a64c2727d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers.py:74-78 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers_new.py:44-46 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d750ca1568f100292898b6615a8d38330a1c246ac3434ae6de6baa6b28df527"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): tools/pymss/separator.py:381-394 | tools/pymss_core/checkpoint.py:47-53 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/separator.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f011188c7ca55f78eaa6d8fc35c7ac27a607bcd6240fa56740fa8d14f3cc24c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets.py:150-155 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets_new.py:102-108 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ea2ccd16b7280b2839cd8c87146153e1927fee05bc7e0e5a47e135839087c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 3\u002B corresponding lines): tools/pymss_core/modules/apollo_mlx.py:8-10 | tools/pymss_core/modules/bandit_mlx.py:10-12 | tools/pymss_core/modules/bs_roformer/mlx_attention.py:33-35 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:24-26 | tools/pymss_core/modules/demucs_mlx.py:14-16 | tools/pymss_core/modules/mdx23c_mlx.py:16-18 | tools/pymss_core/modules/scnet_mlx.py:11-13 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 3 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/apollo_mlx.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a494f37fa5265fbb67e7829e521984fe9deba01125ec4a1be5d50aaea6ee3c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): tools/pymss_core/modules/bandit_mlx.py:161-164 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:257-260 | tools/pymss_core/modules/demucs_mlx.py:259-262 | tools/pymss_core/modules/scnet_mlx.py:193-196 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bb12e1f62a4a5c899e2e4831f2edddfb1caf1c7850fc1823de89f64634e6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): tools/pymss_core/modules/bandit/core/__init__.py:5-9 | tools/pymss_core/modules/bandit/core/model/__init__.py:5-9 \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":"tools/pymss_core/modules/bandit/core/__init__.py"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b07d90a9b9e055fca5db948659e1c3117279f55f52fa9b7fcda156ef77c61d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): tools/pymss_core/modules/demucs4ht.py:137-167 | tools/pymss_core/modules/legacy_demucs.py:786-816 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs4ht.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa449569b281376c141a4b49dc52b62c762f6419d7804f4ac960295f40281011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): tools/pymss/separator.py:359-377 | tools/pymss_core/checkpoint.py:25-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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/separator.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"502fe29764147f8f03017888299efe7209c193eb020d47bad4fffb5a1d711a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): tools/pymss_core/modules/bandit/core/model/bsrnn/wrapper.py:105-120 | tools/pymss_core/modules/bandit_v2/bandit.py:80-95 | tools/pymss_core/modules/demucs4ht.py:263-278 | tools/pymss_core/modules/look2hear/apollo.py:310-325 | tools/pymss_core/modules/mdx23c_tfc_tdf_v3.py:126-141 | tools/pymss_core/modules/scnet/scnet.py:202-217 \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. 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, \u0060tools/pymss_core/modules/scnet/scnet.py:199\u0060 calls \u0060SeparationNet\u0060 and \u0060tools/pymss_core/modules/look2hear/apollo.py:307\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":"tools/pymss_core/modules/bandit/core/model/bsrnn/wrapper.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"924f95ad706b71e66e56a705517f46fe31300d7ce2cae2cf8befed766caa20f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): tools/pymss/server/app.py:804-818 | tools/pymss/server/app.py:828-842 | tools/pymss/server/app.py:858-872 \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":"tools/pymss/server/app.py"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"261b32a24096c778f29a2aecd5f672ca2eda47bc3478be5aae18b7b092e11952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): tools/pymss_core/modules/apollo_mlx.py:69-82 | tools/pymss_core/modules/demucs_mlx.py:124-137 | tools/pymss_core/modules/scnet_mlx.py:110-123 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/apollo_mlx.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"138d993868a8fcedeecba777b948d1e170b2a244e042bad27a9dfcdf4ae8aa66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): tools/pymss_core/modules/bandit/core/model/bsrnn/wrapper.py:185-198 | tools/pymss_core/modules/bandit_v2/bandit.py:236-249 \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 \u0060tools/pymss_core/modules/bandit/core/model/bsrnn/wrapper.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit/core/model/bsrnn/wrapper.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"167afd0b4798b4f6bfeaf08a2e21457b32bb70b04eb29af7a8dd6d888ab57790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): tools/pymss/modules/vocal_remover/vr_mlx.py:29-41 | tools/pymss_core/modules/mdx23c_mlx.py:129-141 \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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e789f3832af7ca401332ff510d5264e2607eb38a9f3ef3aff20df563df994877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:11-25 | tools/pymss_core/modules/legacy_demucs.py:654-668 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"39847581cfde3acfcb5a35a8ebfa83c29a0df936b73dcd951a9bd2ab85d4eca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): tools/pymss/server/app.py:267-279 | tools/pymss/server/app.py:300-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/server/app.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c436c8e4844d95084fa4d45b96ed86748f952fa0244ab3ce63dbc1843b8cc7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:32-43 | tools/pymss_core/modules/legacy_demucs.py:673-684 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"97370b39da9bd33d97456bc453d83d1c22326f1b20901cb8f9f6b879c513e0ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:166-181 | tools/pymss_core/modules/legacy_demucs.py:479-494 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27f9fcacabbb03da651a117737a58b12a7f9f106bd7804e057eaae119fe6180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:260-271 | tools/pymss_core/modules/legacy_demucs.py:581-592 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17cc85b86c2b8f30e017dfde5a53e14e754852e60736d0fbbbb81834eec3023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): tools/pymss/modules/vocal_remover/vr_mlx.py:8-18 | tools/pymss_core/modules/apollo_mlx.py:14-24 | tools/pymss_core/modules/bandit_mlx.py:16-26 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:279-289 | tools/pymss_core/modules/demucs_mlx.py:20-30 | tools/pymss_core/modules/mdx23c_mlx.py:22-32 | tools/pymss_core/modules/scnet_mlx.py:17-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 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 7 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060tools/pymss_core/modules/bs_roformer/mlx_roformer.py:292\u0060 calls \u0060_silu\u0060, \u0060sigmoid\u0060 and \u0060tools/pymss/modules/vocal_remover/vr_mlx.py:21\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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f21928c11d616af29e6e17bb8f90dbbb0866417ba0764645280b8f46122e054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/pymss/cli.py:377-387 | tools/pymss/cli.py:503-514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/pymss/cli.py:503\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/cli.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1839cb8cf889bca10cdaca00e6be5c070eb78a1c173f69ac6c4ef35f20a1ab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): tools/pymss_core/modules/bs_roformer/bands.py:444-453 | tools/pymss_core/modules/bs_roformer/bands.py:596-606 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bs_roformer/bands.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6f633571cb43318251cddabbf52ab727a1ce1f97904b107c7cd60b194450b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:52-62 | tools/pymss_core/modules/legacy_demucs.py:691-701 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060tools/pymss_core/modules/demucs_local.py:51\u0060 calls \u0060cpu\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py:690\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"50702a27feffe0d219839b69cb86e18c70c309d67f1f41efa6f218f171925fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:207-225 | tools/pymss_core/modules/legacy_demucs.py:524-542 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"55319e5f40fdd760d2d5fa4af149c5fb8337db32eda162cee5d08647c4dd779b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:229-239 | tools/pymss_core/modules/legacy_demucs.py:546-556 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb4bae4f37934455862ac09a04de4800c65e613907a0c3f6e8203da82efcfe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:274-296 | tools/pymss_core/modules/legacy_demucs.py:595-617 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa993c1fb4ca46ee3465080e213c6794ec45cd9d5a0ae8f0a365983e26533fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/pymss_core/modules/legacy_demucs.py:184-194 | tools/pymss_core/modules/legacy_demucs.py:320-330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/legacy_demucs.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d51c29e58a99ae3d4c529ce93ce55c17455684a81a42f1fc161135a25eccbcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): tools/pymss_core/modules/demucs_mlx.py:283-292 | tools/pymss_core/modules/mdx23c_mlx.py:234-243 | tools/pymss_core/modules/scnet_mlx.py:210-219 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. 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, \u0060tools/pymss_core/modules/demucs_mlx.py:281\u0060 calls \u0060isinstance\u0060, \u0060_conv_transpose1d_ncl\u0060 and \u0060tools/pymss_core/modules/scnet_mlx.py:209\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_mlx.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"762d4b4ea3869ef02de154744a0c357901e4aeb13467ddddaac4636ef2d0096b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): tools/pymss/modules/vocal_remover/vr_mlx.py:313-326 | tools/pymss_core/modules/scnet_mlx.py:271-284 \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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2f67b45efa119a9847794ba62cc73c66480e22602a577f00403ba1dfe48f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): tools/pymss/workflow.py:601-610 | tools/pymss/workflow.py:614-623 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/workflow.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77077647891ca1c5de7bccc39d2c61989a3d8be65f535c8e4ee433c7779b4a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): tools/pymss_core/modules/demucs4ht.py:397-408 | tools/pymss_core/modules/legacy_demucs.py:922-933 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs4ht.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b2ed2604f3c75ccf2102c042bc0540a45a0d4206195712df1042383c83fff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:300-309 | tools/pymss_core/modules/legacy_demucs.py:622-631 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/pymss_core/modules/demucs_local.py:300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"561f7036872bb9e8e1979e87d468591abab726f3a14b00c8ebfe52f7cebe1f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): tools/pymss_core/modules/demucs_mlx.py:325-334 | tools/pymss_core/modules/demucs_mlx.py:346-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_mlx.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"9769f2ebbfd8966daa6167187563307e36d6c31e391d1ce720c49e072290f102"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): tools/pymss_core/modules/legacy_demucs.py:492-501 | tools/pymss_core/modules/legacy_demucs.py:554-563 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/legacy_demucs.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e15629c79d8e82c661e1319b029067e0aabf52aafdb32f579963a56da9681ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): tools/pymss/modules/vocal_remover/vr_mlx.py:34-42 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:316-324 | tools/pymss_core/modules/mdx23c_mlx.py:134-142 \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 \u0060tools/pymss/modules/vocal_remover/vr_mlx.py:34\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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"049b2cb822b77c61e76e1757f697300ac6d9812116e1eec0c5838ebe4a894092"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): tools/pymss_core/modules/bandit_mlx.py:88-106 | tools/pymss_core/modules/scnet_mlx.py:78-96 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6044ced2b981e1459c414805e7b2760f54eee244c787d05f614057ecaf7e8b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): tools/pymss_core/modules/bandit_mlx.py:254-262 | tools/pymss_core/modules/scnet_mlx.py:288-296 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa175dd785d4d112766909e081994bea43173853c75e8f2c7f6567ddc1e82d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): tools/pymss_core/modules/demucs4ht.py:390-398 | tools/pymss_core/modules/demucs_mlx.py:539-547 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs4ht.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"79687c02f4fbe56128c3607106b9ad87a9e90d4a6d6b82febabb1090f93e85da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:148-162 | tools/pymss_core/modules/legacy_demucs.py:461-475 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7044c71f9744d6761243d5dbf2b8291bec38324982c8b6e983ac241a75f65b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:241-248 | tools/pymss_core/modules/legacy_demucs.py:561-569 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/pymss_core/modules/demucs_local.py:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe412aa7bb44b9d4ba9cc25b385d4d7b6249a5fb56f8c84aa0b35cb19823118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): tools/pymss/modules/vocal_remover/vr_mlx.py:329-335 | tools/pymss_core/modules/bandit_mlx.py:253-259 | tools/pymss_core/modules/scnet_mlx.py:287-293 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060tools/pymss_core/modules/scnet_mlx.py:296\u0060 calls \u0060TypeError\u0060 and \u0060tools/pymss/modules/vocal_remover/vr_mlx.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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"875eeb0b9ad487846df79ff572696f42f2f795aa5652fa31321f2806a33e5913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/pymss/utils.py:611-617 | tools/pymss_core/modules/demucs_mlx.py:38-44 \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":"tools/pymss/utils.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ce86f924426f7a25324a12d7f48d9e4b348498d7128addd48caa1441c3b64b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/pymss/utils.py:865-871 | tools/pymss/utils.py:923-929 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/pymss/utils.py:865\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/utils.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaacf8d6951470215eae6be4f48f334894f8631fc9d2c769378723bb6d611492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/pymss_core/modules/bs_roformer/bands.py:609-616 | tools/pymss_core/modules/bs_roformer/bands.py:632-639 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bs_roformer/bands.py"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"547f28ff6102aae781d418cb2442ae6d13ecb9ef9edca06b1e0200c7d3b823cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/pymss_core/modules/demucs_mlx.py:159-165 | tools/pymss_core/modules/scnet_mlx.py:127-133 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/pymss_core/modules/demucs_mlx.py:159\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, \u0060tools/pymss_core/modules/scnet_mlx.py:134\u0060 calls \u0060_conv_padding\u0060 and \u0060tools/pymss_core/modules/demucs_mlx.py:166\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":"tools/pymss_core/modules/demucs_mlx.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"303738bfeb8c1eaf28874b2ddefd5f229512eb269fb23e245b8757d56ceb5346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/pymss_core/modules/demucs_mlx.py:178-184 | tools/pymss_core/modules/scnet_mlx.py:148-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/pymss_core/modules/demucs_mlx.py:178\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_mlx.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"822ebcc3d8271c5a8df7a2fae4d1a7b28e69c7328d21f2e2ce98bd8f58670b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): tools/pymss/modules/vocal_remover/vr_mlx.py:166-171 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:575-580 | tools/pymss_core/modules/demucs_mlx.py:287-292 | tools/pymss_core/modules/mdx23c_mlx.py:238-243 | tools/pymss_core/modules/scnet_mlx.py:214-219 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060tools/pymss_core/modules/demucs_mlx.py:285\u0060 calls \u0060isinstance\u0060, \u0060_conv_transpose2d_nchw\u0060 and \u0060tools/pymss_core/modules/bs_roformer/mlx_roformer.py:574\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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a33eb3b79dcbfb93cc8ad60a5c7d87bcf9bc42d6c0b1bb1b12d783196347f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): tools/pymss_core/modules/apollo_mlx.py:28-34 | tools/pymss_core/modules/mdx23c_mlx.py:40-46 | tools/pymss_core/modules/scnet_mlx.py:35-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. 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, \u0060tools/pymss_core/modules/mdx23c_mlx.py:35\u0060 calls \u0060_hann_window\u0060, \u0060mlx_periodic_hann_window\u0060 and \u0060tools/pymss_core/modules/apollo_mlx.py:24\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":"tools/pymss_core/modules/apollo_mlx.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a012bc58ee5518c545ffb2e202d17fdb9ccfe4d83d1292a1b86e89d6fcce93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): tools/pymss/modules/vocal_remover/vr_mlx.py:46-58 | tools/pymss_core/modules/mdx23c_mlx.py:178-190 \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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa535342c45bea3e21ce21c320e3a8fe2b34c6cbe8e499b8999cf96582eb9e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): tools/pymss/modules/vocal_remover/vr_mlx.py:97-102 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:359-364 \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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48a07f023aa312f6782bf5604a3e4534cb7e1733b2f3046c2fd7a51fb27ac98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): tools/pymss_core/modules/bandit_mlx.py:127-135 | tools/pymss_core/modules/demucs_mlx.py:194-202 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/pymss_core/modules/bandit_mlx.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":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb5f518d39bd3dd66b4e7a5479c5d2d468c9a2ac784fc8c13f56f15c046fb67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): tools/pymss_core/modules/bs_roformer/bands.py:346-348 | tools/pymss_core/modules/bs_roformer/bands.py:368-373 | tools/pymss_core/modules/bs_roformer/bands.py:390-395 \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":"tools/pymss_core/modules/bs_roformer/bands.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afd9b1a70779065ef6108f7f049ea95ca41fcdd3c7138cb29c8cb3091ea99bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/pymss_core/modules/demucs_mlx.py:403-410 | tools/pymss_core/modules/demucs_mlx.py:428-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_mlx.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"817d84b17985d9721d43815e0c0aec70c79bdcc0ca8c4622d64cf912b420100f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): tools/pymss/utils.py:613-619 | tools/pymss_core/modules/bandit_mlx.py:44-50 | tools/pymss_core/modules/demucs_mlx.py:40-46 \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":"tools/pymss/utils.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82d10beb15dddbfb2bbb885180c48c35eeb80e24f988b1b256d233489bd297d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): tools/pymss_core/modules/bandit/bandsplit.py:129-134 | tools/pymss_core/modules/bandit_mlx.py:203-208 \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":"tools/pymss_core/modules/bandit/bandsplit.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d96bcc8e1d2a056622041f07a4640cf9df73e5520638b53bacea31d29bb6156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/pymss_core/modules/bandit_mlx.py:113-123 | tools/pymss_core/modules/demucs_mlx.py:212-222 \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":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f44bef52c380b0fc522cc85590729c4eb6ad0703040bdc215db99c3aa715f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:66-72 | tools/pymss_core/modules/legacy_demucs.py:69-75 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"71783c761ab942741e0981dcf995943c4bb0363f0b0aa1d05004e86ee217cd9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): tools/pymss_core/modules/scnet_mlx.py:306-311 | tools/pymss_core/modules/scnet_mlx.py:315-320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/scnet_mlx.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d24e3701abb17b0d60e4085d75f62db9ad3056c4674e06fb003ca2e307fed2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets.py:137-141 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets_new.py:91-95 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/nets.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abd8dc157d3bbf96c877ae829809097fe9767bab5a6eec40be2b48335f9bc43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): tools/pymss/modules/vocal_remover/uvr_lib_v5/spec_utils.py:73-79 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers.py:7-13 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers_new.py:7-13 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/modules/vocal_remover/uvr_lib_v5/spec_utils.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"66733dd80229aa73cb7295056ba02c84ea797e30718ddc0350fbb73d50b54a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/pymss_core/modules/bs_roformer/mlx_roformer.py:299-305 | tools/pymss_core/modules/mdx23c_mlx.py:119-125 \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":"tools/pymss_core/modules/bs_roformer/mlx_roformer.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b528b4e3d26ef8e578321d367acc120097743eda56d77c716534f4ad9e253254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers.py:18-24 | tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers_new.py:18-24 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/vocal_remover/uvr_lib_v5/vr_network/layers.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa53cd3277da729eae01266c45d0dee18077313268d279890c2e9bab9f21e4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): tools/pymss/cli.py:400-405 | tools/pymss/cli.py:438-443 | tools/pymss/cli.py:517-522 \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, \u0060tools/pymss/cli.py:523\u0060 calls \u0060add_argument\u0060 and \u0060tools/pymss/cli.py:444\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/cli.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"5853f0d7178c9c5fad164934f2d87950f04f803ddf5f8aaec437d997b54b0816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tools/pymss/modules/vocal_remover/vr_mlx.py:118-124 | tools/pymss_core/modules/bs_roformer/mlx_roformer.py:376-382 \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":"tools/pymss/modules/vocal_remover/vr_mlx.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7a79b1a3b69060399892597a659088b07b8f0eb7c59fa9f35cbd9beb73cf5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): tools/pymss_core/modules/bandit_mlx.py:153-157 | tools/pymss_core/modules/mdx23c_mlx.py:218-222 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060tools/pymss_core/modules/bandit_mlx.py:151\u0060 calls \u0060isinstance\u0060, \u0060_gelu\u0060 and \u0060tools/pymss_core/modules/mdx23c_mlx.py:217\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":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ceae069b8ea92ef58707ae725ae0f1574117b4287de9af58a4a0725edd4ca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/pymss_core/modules/bs_roformer/mlx_roformer.py:328-335 | tools/pymss_core/modules/mdx23c_mlx.py:164-171 \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":"tools/pymss_core/modules/bs_roformer/mlx_roformer.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52d47b1f36698658d9e51a81f3bc57bf1973c85cdf1a27c6bc3ef449fdbea9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/pymss_core/modules/demucs_local.py:114-121 | tools/pymss_core/modules/legacy_demucs.py:636-643 \u2014 before extracting anything, compare \u0060tools/pymss_core/modules/demucs_local.py\u0060 and \u0060tools/pymss_core/modules/legacy_demucs.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c186e79c1ab502d3328153f3a29e8de257382eb5c10798a5de2fd995f4eb5be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): tools/pymss_core/modules/scnet/scnet.py:72-77 | tools/pymss_core/modules/scnet_mlx.py:242-247 \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":"tools/pymss_core/modules/scnet/scnet.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f2a3b95339d65f4f6a6b1ed20c5d469a8e79c9f6d52077166c7c9341b732c0"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (pytest or unittest), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: train/train.py: train/train.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in train.run at line 158. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-06..2026-08-04, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-06 15:47:05 \u002B08:00\u0027 --until=\u00272026-08-04 15:47:05 \u002B08:00\u0027 --full-history --no-merges -- train/train.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"train/train.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0058b9d4764b61d58da9bc26a6553e2c6cc0920d473991827d026c7a98e219"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: infer/vc/modules.py: infer/vc/modules.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in VC.get_vc at line 101. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-05-06..2026-08-04, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-06 15:47:05 \u002B08:00\u0027 --until=\u00272026-08-04 15:47:05 \u002B08:00\u0027 --full-history --no-merges -- infer/vc/modules.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/vc/modules.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d361e0bab7bf772eda3b10fa9e2307cdb9fdd0ec4d664005af19b2d2ad6f662a"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (31997 LoC, 327 module-visible types across 26 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","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":"4095424c019adce5caf3fd213207568467a520ae2b9187b62b092292834366cf"},"properties":{"commitSha":"211e13b80a4bf13d683f199d75a2f88dd50b7444"}},{"ruleId":"D28","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":"169b4e62e3f1e33a667003ec2b38cbb6c7a190f92bd8ee5fa2f5eaaa600d052b"},"properties":{"commitSha":"211e13b80a4bf13d683f199d75a2f88dd50b7444"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"79823d9db6e32f31a2f56c1b30e649ef62cf16fa1372c7ebc96e9dd4734261dc"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 2 application file(s) sit at the repository root beside the build and tooling files (\u0060realtime_gui.py\u0060, \u0060webui.py\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"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 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cache is not None and cache.get(\u0022key\u0022) == key\u0060 appears character-identically in 2 files \u2014 tools/pymss_core/modules/bs_roformer/mlx_attention.py, tools/pymss_core/modules/bs_roformer/mlx_roformer.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bs_roformer/mlx_attention.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a8f00b2b160c21a151551c23039e15b9932f3b8339735fc67b1d3be0c68168"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.category_path or entry.primary_category\u0060 appears character-identically in 3 files \u2014 tools/pymss/cli.py, tools/pymss/server/models.py, tools/pymss/server/state.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/cli.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5b7efa14f9bb67da75f0510a7385b039a7da55db86fd2c18d6190c57be9141"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.config_relpath and config_path is not None\u0060 appears character-identically in 2 files \u2014 tools/pymss/model_download.py, tools/pymss/server/models.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss/model_download.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c65e274f7d2efd7d6d2d6daf11e5f5c0a87643a924efcd98450f745e16c6968"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060multi_freqs and index \u003C multi_freqs_depth\u0060 appears character-identically in 2 files \u2014 tools/pymss_core/modules/demucs4ht.py, tools/pymss_core/modules/legacy_demucs.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs4ht.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"43bd92f274cbeebb120500dc5f878647fa6b8237986cd8b60b4ac7a540fcd1de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self.freq and x.shape[-1] % self.stride\u0060 appears character-identically in 2 files \u2014 tools/pymss_core/modules/demucs_local.py, tools/pymss_core/modules/legacy_demucs.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/demucs_local.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8ff1039e2b1b1128aae7780ea05f5ca601ff4a24ae958ca3536a472e61bc37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self.training and self.mps_model_backend == \u0022mlx_full\u0022 and x.device.type == \u0022mps\u0022\u0060 appears character-identically in 2 files \u2014 tools/pymss_core/modules/mdx23c_tfc_tdf_v3.py, tools/pymss_core/modules/scnet/scnet.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/mdx23c_tfc_tdf_v3.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffeb18b9bc822ad618bda73f3024becb3a6388209a57320b47c2701788bd7d46"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pad_size \u003E 0 or p_len - len(f0) - pad_size \u003E 0\u0060 appears character-identically in 2 files \u2014 infer/vc/pipeline.py, train/dataset/extract_f0.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":"infer/vc/pipeline.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"307cce2b4759f77368cc65c8eea7166b6b9aab7d70a9423c981528f9b853a10c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rnn.num_layers != 1 or not rnn.batch_first\u0060 appears character-identically in 2 files \u2014 tools/pymss_core/modules/bandit_mlx.py, tools/pymss_core/modules/scnet_mlx.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/pymss_core/modules/bandit_mlx.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee752b3563f0e23fb63a7a165d6d44e07703ac6357b97e526f46b4f835861714"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/audio.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"53159def1254f954ce1172fc48c3cd19fc5a5601352a62099183e4e01106eb21"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/audio.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31a1d77787991b30aede5b40e7c0b1e01fdc670510f59a8b7146bdd2b458f92"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infer/audio.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4789888fffe88d1817d9cba452c7209891c50844943db30a44faeb0ab0dffc2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"configs/config.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd4174c89184550f066dc96ec57ab50c2167344550a1e03a521564fe2cc83ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RVCRealtimeVST/worker/rvc_worker.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1313a8a350190c3c17c8e5b38f42dc7d59266dcb1a0e6e11e64394e73c2263e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RVCRealtimeVST/worker/rvc_worker.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc69e41be140562c96223798dfb33b923148045dfd960f493de671d6f224b389"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 544 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":"train/train.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a233b58a08e107925e807fa64f02f9b387a8b045f1441f5c4e924e95965ab8c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 281 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":"configs/config.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"97476789358b3a0b54aa5184b1999eb051050734dd6ea203dc58ec86ddbcdf26"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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/"}]}],"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":4,"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."]}]}