{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"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":"app.run_inference (cyclomatic 41): app.run_inference has cyclomatic complexity 41 (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":"gradio/app.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64b582e2082af7326c69f7b08b145f769e78916476d843ad129325d22ceaabc"}},{"ruleId":"D1","level":"warning","message":{"text":"read_video._read_from_stream (cyclomatic 23): read_video._read_from_stream 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":"opensora/datasets/read_video.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b7755045e3c6f2fda23f00dec235719183f58c7ec730416f80c126c3990011"}},{"ruleId":"D1","level":"warning","message":{"text":"distributed.mmdit_model_forward (cyclomatic 19): distributed.mmdit_model_forward 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":"opensora/models/mmdit/distributed.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"20259a417b156536eaccd1a9bc0b540fa41ffc65217aa720a0dc0991f173b8dc"}},{"ruleId":"D1","level":"warning","message":{"text":"Decoder.__init__ (cyclomatic 18): Decoder.__init__ 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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa91b0425d97a23d73d2d305ee5a6252345ed7cc4df9ace039706133b47d6143"}},{"ruleId":"D2","level":"warning","message":{"text":"app.run_inference (cognitive 59): app.run_inference has cognitive complexity 59 (threshold 15). Drivers by points: if/else 27 (36 pts), loops 7 (9 pts), ternaries 6 (8 pts), boolean chains 6 (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":"gradio/app.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13847152911f9d04f1a19a504eb601e763bf11d02452cc923007d26d5dce289"}},{"ruleId":"D2","level":"warning","message":{"text":"Bucket.get_bucket_id (cognitive 35): Bucket.get_bucket_id has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (29 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 20). 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":"opensora/datasets/bucket.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"66338e721d38b9e2d6060aaa23c0a7cd4d50ddf69657b07960edddbe2f3358b8"}},{"ruleId":"D2","level":"warning","message":{"text":"read_video._read_from_stream (cognitive 34): read_video._read_from_stream has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 5, loops 3, error handling 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/read_video.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"130815bbe6c742bb2b53c51a37c57dc0c89d566de3c1c189a07ecb04b05e21ed"}},{"ruleId":"D2","level":"warning","message":{"text":"distributed.mmdit_model_forward (cognitive 32): distributed.mmdit_model_forward has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 3, loops 2 (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":"opensora/models/mmdit/distributed.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7c643bb654cb8a482374d73212791b86b12cf5999e124b4e6e94c1a01f0af8"}},{"ruleId":"D2","level":"warning","message":{"text":"init.init_modules (cognitive 27): init.init_modules has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 2 (4 pts), ternaries 1 (2 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":"opensora/models/dc_ae/utils/init.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6629d80195d6039722293566c442a8ee57171453049009eefd66836ba0f5dea6"}},{"ruleId":"D2","level":"warning","message":{"text":"train.prepare_visual_condition_uncausal (cognitive 27): train.prepare_visual_condition_uncausal has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/train.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"89df1f49bd9bfd10c250d7e98f93a75cb37e82f29841f1d1eec1012b2f29ab9f"}},{"ruleId":"D2","level":"warning","message":{"text":"VariableVideoBatchSampler.__iter__ (cognitive 26): VariableVideoBatchSampler.__iter__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 5 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/sampler.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b78de5887e9a2a32bbbf7972c585a19a9f8b25dd63ca15f95e0d4df372abce4"}},{"ruleId":"D2","level":"warning","message":{"text":"Decoder.__init__ (cognitive 26): Decoder.__init__ has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 7, if/else 1 (2 pts), 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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b0c366a1a818614a0733865fc8da7237c03dc1da54db2b11e9bfbe807842a1"}},{"ruleId":"D2","level":"warning","message":{"text":"VariableVideoBatchSampler.print_bucket_info (cognitive 23): VariableVideoBatchSampler.print_bucket_info has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (7 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/sampler.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d32b06a0ca60e4aa010d5bf446a251abc5fd5ba98416f1be84432fff91f5bd"}},{"ruleId":"D2","level":"warning","message":{"text":"MMDiTPolicy.module_policy (cognitive 22): MMDiTPolicy.module_policy has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/distributed.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e101161c10555b570221d0e53bb5e9cfc418ca82c7e59ec394953042fe2cc9"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckpointIO.save (cognitive 21): CheckpointIO.save has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/ckpt.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc49019abc0fc28d243009cf95a4f3f555727c6d34fc91087f119c222fb1600f"}},{"ruleId":"D2","level":"warning","message":{"text":"train.prepare_visual_condition_causal (cognitive 20): train.prepare_visual_condition_causal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (8 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/train.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"98985d13c66b7ff8fb4e328e7f3ee3fd074047422eb7bcca84577e140d697550"}},{"ruleId":"D2","level":"warning","message":{"text":"ckpt.load_checkpoint (cognitive 18): ckpt.load_checkpoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (7 pts), boolean chains 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":"opensora/utils/ckpt.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e9db9e13f7c82af02be507c653a6e0f103509271eff6020e786183f3c3ae28"}},{"ruleId":"D2","level":"warning","message":{"text":"Encoder.__init__ (cognitive 17): Encoder.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (11 pts), boolean chains 3, if/else 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa04d66877f24b62e0ba736f870c02601c715108b3aef454915024b011bafaaf"}},{"ruleId":"D2","level":"warning","message":{"text":"inference.collect_references_batch (cognitive 17): inference.collect_references_batch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (3 pts), boolean chains 1, 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":"opensora/utils/inference.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60be5493419342f2b2976a19120609af8bf497533e89391332d76e5689038ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nn/ops.py: FileTooLong \u2014 777 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 277 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/nn/ops.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04c12b5849748bfd1218a323fb792daae178fb644c9e74051d12504aabfda01"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mmdit/distributed.py: FileTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 167 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/distributed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1395d0c5deb4931bac2bc6a4fa11906f8e59bc9f4a1fcd78ab05cff22932940"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/dc_ae.py: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 150 over it, 1.30\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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a829989733f0e0136be230e243e407508c8cdc9e615a71f936ec0127803a5d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gradio/app.py: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 14 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":"gradio/app.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2da90708e6503dc77269e79a3620afc3e2afdc69923f0022368b20ebe9e837b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): opensora/utils/train.py:189-313 | opensora/utils/train.py:317-407 \u2014 These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/train.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2c324a6715e014e2133328e7d756709b398414a1f1e77123709e1fcb511a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): opensora/models/dc_ae/models/dc_ae.py:614-640 | opensora/models/dc_ae/models/dc_ae.py:675-702 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:385-434 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:439-484 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d27f74f690f948328b85f20628120da3425fccc62a9b622578eb4e1246605b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): opensora/models/dc_ae/models/dc_ae.py:643-664 | opensora/models/dc_ae/models/dc_ae.py:705-725 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:487-515 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:522-552 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"2419d757736cf7aaa311fa4c4152d2b81f77d94891eedf36e8415f432bf836b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): opensora/models/vae/tensor_parallel.py:78-113 | opensora/models/vae/tensor_parallel.py:190-223 | opensora/models/vae/tensor_parallel.py:298-331 | opensora/models/vae/tensor_parallel.py:406-439 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/tensor_parallel.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"37eaae6e8ecfcc8adddedd69df97b42cf8ebaf956af412db5a28f554f1454eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): opensora/models/vae/tensor_parallel.py:119-145 | opensora/models/vae/tensor_parallel.py:229-251 | opensora/models/vae/tensor_parallel.py:358-381 | opensora/models/vae/tensor_parallel.py:467-490 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/tensor_parallel.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"411789fc6ba6d300a263a1e7013bcda3a6e8737e0c1ce737c361c706228cdf4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): opensora/models/mmdit/distributed.py:432-505 | opensora/models/mmdit/layers.py:201-253 \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":"opensora/models/mmdit/distributed.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dc65be7f39b6af88db36c53adaf4a6968e265bba1cb3fb002e48c707e8921a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): opensora/models/hunyuan_vae/distributed.py:91-177 | opensora/models/mmdit/distributed.py:235-313 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/hunyuan_vae/distributed.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b35b6444b65f46600783e290088d7851492e5748b0ef023a922966d8d37cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): opensora/models/hunyuan_vae/distributed.py:182-233 | opensora/models/mmdit/distributed.py:318-373 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/hunyuan_vae/distributed.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"791889e50c698b47365deba5643ad21e05683808f8cd34c0f9fa39802e8c2e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): opensora/models/hunyuan_vae/vae.py:59-119 | opensora/models/hunyuan_vae/vae.py:171-231 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/hunyuan_vae/vae.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e772648900ceb18d9cbe1fa4d3f60df9df2444007b426365acf69948a69e9b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): opensora/utils/sampling.py:409-459 | opensora/utils/sampling.py:467-508 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/sampling.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9c0f91d5a535b2224dae4f7cbfc3e8c6907d09c55eb03e89563ab785829ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): opensora/models/dc_ae/models/nn/ops.py:442-475 | opensora/models/dc_ae/models/nn/ops.py:498-522 | opensora/models/dc_ae/models/nn/ops.py:608-634 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 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":"opensora/models/dc_ae/models/nn/ops.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2a5c1e9f5a0e7cde2af9887322e62f4a601ac4c84773b39503bec6ac8b52cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): opensora/datasets/datasets.py:47-61 | opensora/datasets/datasets.py:64-78 \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":"opensora/datasets/datasets.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"214c7a2ca1af280c5dee8b742d093653da80d777b93e38eae8e43701b8bfbbc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): opensora/models/mmdit/distributed.py:61-69 | opensora/models/mmdit/distributed.py:89-102 \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":"opensora/models/mmdit/distributed.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"09830a9dfa5d99c1a12b67a173d933275b91c4c3aa6785097a12aca6cb1bd7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): opensora/models/hunyuan_vae/vae.py:282-297 | opensora/models/vae/utils.py:118-126 \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":"opensora/models/hunyuan_vae/vae.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"660d72386f7ff2d20cc286f7ff2f2ff6ee23e711963efc07b52d3d834085a834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): opensora/models/dc_ae/models/dc_ae.py:565-578 | opensora/models/dc_ae/models/dc_ae.py:728-740 \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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8f76090d84be867686df670f6932a4c7d372d7bcca6f96674ae1d4f1b8e388"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): opensora/models/hunyuan_vae/vae.py:311-328 | opensora/models/vae/utils.py:134-147 \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":"opensora/models/hunyuan_vae/vae.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabd5f1989837fd0a576d5cfe0364018a110261a4d1db19686c6a913b72680b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): opensora/models/mmdit/math.py:69-91 | opensora/models/mmdit/math.py:95-117 \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":"opensora/models/mmdit/math.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75bca8f722f66587899ad5c748ecad3eb73324b04527ebed9069dc5351bb22b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): opensora/models/hunyuan_vae/unet_causal_3d_blocks.py:373-403 | opensora/models/hunyuan_vae/unet_causal_3d_blocks.py:432-466 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/hunyuan_vae/unet_causal_3d_blocks.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58e6a2df9c14b8688c54457bc55eb0ba3df4de9beec90b5de1cf91a70442cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): opensora/models/vae/tensor_parallel.py:254-273 | opensora/models/vae/tensor_parallel.py:334-352 | opensora/models/vae/tensor_parallel.py:442-461 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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":"opensora/models/vae/tensor_parallel.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db2b7a38135559cccc79a4b6f3c93b75f41e3e2002fad68df20500f27b2bca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): opensora/datasets/datasets.py:235-244 | opensora/datasets/datasets.py:302-312 \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":"opensora/datasets/datasets.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c653e71e7bcd8ee89306afb3f229c98c9fc03ce33b760844ae6bb6d9aadf69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): opensora/models/dc_ae/models/dc_ae.py:256-275 | opensora/models/dc_ae/models/dc_ae.py:346-373 \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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"297707545b4d3328cc2942162e3e0797c3729d667f9b528245f169344f0419d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): opensora/models/dc_ae/models/dc_ae.py:581-587 | opensora/models/dc_ae/models/dc_ae.py:743-749 \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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3c68ab1a65f81e0e51c6ce72fd7c20ef71e8b56ccfc9c452d814505834a222"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): opensora/models/mmdit/distributed.py:414-422 | opensora/models/mmdit/math.py:23-36 \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":"opensora/models/mmdit/distributed.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1047b5d964b0350286fab793565546d4711731432bfcdd28b4d151b760c860"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): opensora/models/vae/discriminator.py:10-15 | opensora/models/vae/discriminator.py:19-26 \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":"opensora/models/vae/discriminator.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6758c8f8b408507358a51de64ff4c734fb25f5e52b30e8a7bf5d56cc111a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): opensora/models/vae/utils.py:50-56 | opensora/models/vae/utils.py:157-165 \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":"opensora/models/vae/utils.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf24f1e4f6424b55863a6ce2439e783b5fd04c578ee175c667003ab9e5db0b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): opensora/models/dc_ae/models/nn/norm.py:30-34 | opensora/models/dc_ae/models/nn/norm.py:57-60 | opensora/models/dc_ae/models/nn/norm.py:65-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/nn/norm.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a169b563871c223b96ac7bb40faf0257d641532879fbf0ef06e04f9ef24112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): opensora/models/vae/tensor_parallel.py:190-223 | opensora/models/vae/tensor_parallel.py:298-331 | opensora/models/vae/tensor_parallel.py:406-439 \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":"opensora/models/vae/tensor_parallel.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"701d0b84191ac7c4cc1ab2346df472ea9e6db4e84b4318496ed31ff2fe6ec863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): opensora/datasets/utils.py:105-135 | opensora/datasets/utils.py:139-169 \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":"opensora/datasets/utils.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2385c518c7978b67cb737dec98e17f1aad5e478fc3093cd2ee76ec8b437cadcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): opensora/utils/train.py:189-212 | opensora/utils/train.py:317-340 \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":"opensora/utils/train.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0757cffdb5b080e16651e535a2e75c457909177a98c338c9d4dd6cfb6139c5ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): opensora/models/hunyuan_vae/unet_causal_3d_blocks.py:373-393 | opensora/models/hunyuan_vae/unet_causal_3d_blocks.py:432-453 \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":"opensora/models/hunyuan_vae/unet_causal_3d_blocks.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b969f23216e58c3694df211f79ee6dc5f14a580d709aeb5fdb37ea9487180b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): opensora/models/vae/tensor_parallel.py:83-99 | opensora/models/vae/tensor_parallel.py:196-212 | opensora/models/vae/tensor_parallel.py:304-320 | opensora/models/vae/tensor_parallel.py:412-428 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/tensor_parallel.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea14116a7e42dfe3095f4326128b23f13cc19abd144cacc6d55f626269acafc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): opensora/models/vae/tensor_parallel.py:129-144 | opensora/models/vae/tensor_parallel.py:234-249 | opensora/models/vae/tensor_parallel.py:363-378 | opensora/models/vae/tensor_parallel.py:472-487 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060opensora/models/vae/tensor_parallel.py:129\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060module\u0060 to \u0060nn.Conv3d\u0060 in one and \u0060nn.Conv2d\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/tensor_parallel.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"49173f6ed263774bf0c851fb22947d8e3a1bb7ba2b4b1cbcd166293a1ba30e42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): opensora/models/mmdit/distributed.py:473-495 | opensora/models/mmdit/distributed.py:530-553 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060DoubleStreamBlock\u0060 in one and \u0060SingleStreamBlock\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/distributed.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1963a85ca1989b2f5029a5d966228cbf40cd9352ece5659bd13f72d03909e42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): opensora/models/dc_ae/models/nn/ops.py:408-421 | opensora/models/dc_ae/models/nn/ops.py:463-475 \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 \u0060opensora/models/dc_ae/models/nn/ops.py:408\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060opensora/models/dc_ae/models/nn/ops.py:478\u0060 calls \u0060inverted_conv\u0060 and \u0060opensora/models/dc_ae/models/nn/ops.py:424\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":"opensora/models/dc_ae/models/nn/ops.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b9413148c8be47e2e1abf3867bf38741e3e65f7cda42a1af33c4b22e651daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): opensora/models/hunyuan_vae/distributed.py:118-130 | opensora/models/mmdit/distributed.py:257-269 \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":"opensora/models/hunyuan_vae/distributed.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7aba301392660e0d4a437a54eeb2b764adec1139ccbee12dcd8dc0d1a561378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): opensora/utils/train.py:220-232 | opensora/utils/train.py:348-360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/train.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3f727daedde3cc8fa4bdee9e6a478387b35702904867ea78f6311c842b60fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): opensora/models/dc_ae/models/dc_ae.py:625-638 | opensora/models/dc_ae/models/dc_ae.py:687-700 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:415-428 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:465-478 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e1b600c63827477cab33bae4614be4b117234284832291b2b332a48dbf3b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): opensora/models/hunyuan_vae/distributed.py:214-225 | opensora/models/mmdit/distributed.py:356-367 \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 \u0060opensora/models/hunyuan_vae/distributed.py:214\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":"opensora/models/hunyuan_vae/distributed.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab91f234dda0243d88a2e2f433a486792ee350e8682db1a9fad77db260a6832e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): opensora/models/dc_ae/models/nn/ops.py:739-749 | opensora/models/dc_ae/models/nn/ops.py:777-787 \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 \u0060opensora/models/dc_ae/models/nn/ops.py:739\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":"opensora/models/dc_ae/models/nn/ops.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b80298281a64ebdd5fd69f2de5cb353ee966d315b3b72fb3752495a46cb566a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): opensora/models/hunyuan_vae/distributed.py:182-192 | opensora/models/mmdit/distributed.py:318-328 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060opensora/models/mmdit/distributed.py:329\u0060 calls \u0060empty_like\u0060 and \u0060opensora/models/hunyuan_vae/distributed.py:193\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":"opensora/models/hunyuan_vae/distributed.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef25ce9c055cb9f8bffb6357b363f308afcdfcff042b0761b9c143afcacfadb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): opensora/models/hunyuan_vae/vae.py:67-77 | opensora/models/hunyuan_vae/vae.py:191-201 \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 \u0060opensora/models/hunyuan_vae/vae.py:67\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":"opensora/models/hunyuan_vae/vae.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bdc7f7633568e6713cc078f5ebe6cc439219034f96c2c603721b137359640c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 2): opensora/models/mmdit/distributed.py:432-465 | opensora/models/mmdit/layers.py:201-236 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060DoubleStreamBlock\u0060 in one and \u0060nn.Module\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060opensora/models/mmdit/distributed.py:467\u0060 calls \u0060size\u0060 and \u0060opensora/models/mmdit/layers.py:239\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":"opensora/models/mmdit/distributed.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"600c7734501ac73d65d1ae55bec2800d45cd829d734112183c0cc7b9bd6431a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): opensora/utils/train.py:303-313 | opensora/utils/train.py:397-407 \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 \u0060opensora/utils/train.py:303\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"opensora/utils/train.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b95934c97eb9e938a1f4c8bde2b7dcb30cb8c8645cd780ea669c3f702a4bbe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): opensora/models/hunyuan_vae/distributed.py:138-147 | opensora/models/mmdit/distributed.py:276-285 \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":"opensora/models/hunyuan_vae/distributed.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e718651fa9936609aae133e164f295a539fcaeaba18319d2b264bd14d6d5700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): opensora/models/hunyuan_vae/vae.py:79-88 | opensora/models/hunyuan_vae/vae.py:203-212 \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 \u0060opensora/models/hunyuan_vae/vae.py:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/hunyuan_vae/vae.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdda14c166d75585dbf4f3c841ef29c25e8fbf5611c21da5de3e450ee6d3855"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): opensora/utils/inference.py:248-256 | opensora/utils/inference.py:260-269 \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":"opensora/utils/inference.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"9115dc73493e2ae4e861181d7f40b626dc0544f6d00acb6f8aa36e7660bbf72c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): opensora/models/dc_ae/models/dc_ae.py:378-386 | opensora/models/dc_ae/models/dc_ae.py:445-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060EncoderConfig\u0060 in one and \u0060DecoderConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e666a0bfec95f53e2bf90f43169f66649847be220ac8cf21b404f6eac4b8669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:503-511 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:537-545 \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":"opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"5928c422f1667cbea5ee793c61d7af4cbcee333ba5992719b0ac9f6777478662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): opensora/models/dc_ae/models/dc_ae.py:657-664 | opensora/models/dc_ae/models/dc_ae.py:718-725 \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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"6796994edf455cd1508a3b091798578ef15fb9bbe4657e6acd090c8134314ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): opensora/datasets/datasets.py:51-57 | opensora/datasets/datasets.py:67-73 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060opensora/datasets/datasets.py:74\u0060 calls \u0060update\u0060, \u0060to_dict\u0060 and \u0060opensora/datasets/datasets.py:58\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":"opensora/datasets/datasets.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"53764a0fbd2532d65ed45369d8942302470425249a1e4f865290f6c7def8667d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): opensora/models/dc_ae/models/dc_ae.py:657-662 | opensora/models/dc_ae/models/dc_ae.py:718-723 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:505-510 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:539-544 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"c129cb0c2e838aea9ae4035125bcc0223b3fafbb97b6a58e719917b316014ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): opensora/models/mmdit/distributed.py:523-528 | opensora/models/mmdit/layers.py:320-326 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060SingleStreamBlock\u0060 in one and \u0060nn.Module\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/distributed.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8785cbdab3e142178e309eb3a2d60b153ba8e8214aa69bf587ad7bf50a1d5c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): opensora/models/mmdit/layers.py:162-167 | opensora/models/mmdit/layers.py:322-329 \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":"opensora/models/mmdit/layers.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a0df9d1a4c56c75e007fa755bda578e728c9fe3d696e0adec9e9e8f99bc866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): opensora/models/hunyuan_vae/vae.py:290-294 | opensora/models/vae/utils.py:121-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/hunyuan_vae/vae.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bc0e3e7bc00aded22c9fee71b6971f52aaa5494369e647ffedf78fa79a9e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): opensora/utils/inference.py:258-262 | opensora/utils/inference.py:271-275 \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":"opensora/utils/inference.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c21b955f64e1a3d2c1c17088cd522face6694b43c0db18628e43b06e69a2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): opensora/utils/train.py:240-245 | opensora/utils/train.py:363-367 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/train.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"e620b7ed6db5e807a1b8e63257196e83b9eb242197ccee195d2dd0a160125c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): opensora/utils/train.py:275-286 | opensora/utils/train.py:287-298 \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 \u0060opensora/utils/train.py:275\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":"opensora/utils/train.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"af224a69bcfb14870855fb94b7739efc57d6ffb978b5770ecc382753c35fe550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (142 lines \u00D7 2): opensora/models/hunyuan_vae/policy.py:14-155 | opensora/models/mmdit/policy.py:14-155 \u2014 \u0060opensora/models/hunyuan_vae/policy.py\u0060 and \u0060opensora/models/mmdit/policy.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 142 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/hunyuan_vae/policy.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f4e5335e2161634268b4c1c878d14c158c0aca13cacd98cee5bec42b0f3679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): opensora/models/dc_ae/models/dc_ae.py:781-787 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:616-622 \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 \u0060opensora/models/dc_ae/models/dc_ae.py:781\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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4f0610b21d61eb64c54f91a04c044d3fc327e19d4241d6d2f9a377d4b306b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): opensora/models/dc_ae/models/dc_ae.py:565-569 | opensora/models/dc_ae/models/dc_ae.py:728-732 \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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6c95b79000e0f930fdfca9abea8856b6436bf63d399781c431e099feed29d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): opensora/models/dc_ae/models/dc_ae.py:590-595 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:361-366 \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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b9a41b3965e8f15d45d19346b09b2f6ad85eaa398ad66078e15bd4e3d694ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): opensora/models/dc_ae/models/dc_ae.py:598-603 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:369-374 \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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d469e3f630e08ff1bdd172f8c21e17bd303c58ac91630fd9be1e0b136ff89bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): opensora/models/dc_ae/models/dc_ae.py:606-611 | opensora/models/hunyuan_vae/autoencoder_kl_causal_3d.py:377-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":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e5e7e46e01957c5382e02bb81ac56e2362dc64ebe0200e372137c4853cc321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): opensora/models/mmdit/distributed.py:499-505 | opensora/models/mmdit/layers.py:247-253 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060attn\u0060 to \u0060DoubleStreamBlock\u0060 in one and \u0060nn.Module\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/distributed.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7fd7f89d3490026cc274e4b270a2592b966adfcfe976550e367b7eae61db7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): opensora/models/vae/discriminator.py:10-15 | opensora/models/vae/discriminator.py:21-26 \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":"opensora/models/vae/discriminator.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1693fa20c414882befa126d5cc683aae177a439cc01d46cbe4ad4ec9c82ad7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (97 corresponding lines): scripts/vae/inference.py:20-138 | scripts/vae/stats.py:18-114 \u2014 These two members are one piece of code written twice and then edited apart: 97 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/vae/inference.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6bd42c6a8aab387c8a33161028b19d5a44fdfcef8bc2342e67854b3443ce19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): scripts/vae/inference.py:20-78 | scripts/vae/stats.py:18-76 \u2014 before extracting anything, compare \u0060scripts/vae/inference.py\u0060 and \u0060scripts/vae/stats.py\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/vae/inference.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"581023ca87ba44af7fac6bdf78bd10a2d9efd9a99f06bcf7e8c4f89d1e81b533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201323 lines \u00D7 2): scripts/diffusion/train.py:155-172 | scripts/vae/train.py:109-131 \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 \u0060scripts/diffusion/train.py:155\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":"scripts/diffusion/train.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f165f504bd3df5b518a91a3ac7b8599d951161e3c42a87f4c07747cbdaca63f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): scripts/diffusion/train.py:603-618 | scripts/vae/train.py:537-552 \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 \u0060scripts/diffusion/train.py:603\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":"scripts/diffusion/train.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"8151d9501a4fb07a3b7c57406724fdfd59ac1788dc4f008f032798acb3733ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): scripts/diffusion/train.py:125-139 | scripts/vae/train.py:92-105 \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 \u0060scripts/diffusion/train.py:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/diffusion/train.py:124\u0060 calls \u0060get\u0060 and \u0060scripts/vae/train.py:91\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":"scripts/diffusion/train.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dde16c79ed6fcb9e1e56b5b3f0fb0039b211955356af5bc92784717af28128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): scripts/diffusion/train.py:629-645 | scripts/vae/train.py:575-589 \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":"scripts/diffusion/train.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c82c6a5c6e6d52f18fbf394e6e4c038046ad38e25b13c3b7ed9e4e834ae89b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): scripts/diffusion/train.py:518-529 | scripts/vae/train.py:337-346 \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 \u0060scripts/diffusion/train.py:518\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/diffusion/train.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c267316fb7c6ea4202734c792ea6d6a5380dd8e879c972f224af45ce7e522e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/diffusion/train.py:96-104 | scripts/vae/train.py:66-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/diffusion/train.py:93\u0060 calls \u0060get\u0060, \u0060setup_buffer\u0060 and \u0060scripts/vae/train.py:65\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/diffusion/train.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"040b9c7b1390ffea2a3f9a8dd0a2f628fb0ae13993ec2b916b3f90932c4aa2ae"}},{"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":"D17","level":"warning","message":{"text":"TodoComment: # TODO: overlap the communication with computation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/distributed.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfd0b5b2d3f959a293914e56fec2d846969c0610a931e85500e1f5170144f34"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: for loading text features \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/dataloader.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d212d9ff08efb5e5a7b17ceb7d8ef8e15d361fb1cd04e338d5c97b80a850247"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: creating an container leads to memory leak (1G for 8 workers 1 GPU) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/read_video.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6298543e024a034e838382cedca166fa5a2c1cdb4ca9eea566d22c7026c4df"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK: must create before iterating stream \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/read_video.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"67dc9ddac41635c12f4cd6d40b385cdea398bc506f0a58eec7fa1cad09236532"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: The reading has memory leak (4G for 8 workers 1 GPU) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/read_video.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b99d66afd6d3987f7b36ac13adb5b8d75781b00a4c536162a19c3765fea211f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: we should change all of this from ground up to simply take \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/read_video.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c39623ef02b566d0b544df0226be6b53f8cf0c3efb942c80198ed572d057e5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME this is kind of a hack, but we will jump to the previous keyframe \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/read_video.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b6760097e92e102b0b88c702b32241dae0c546efae04cd73e3916c229bebca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO check if stream needs to always be the video stream here or not \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/read_video.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3835b44dbc5823ae3f9bd4959b5e5ae20de1f33476bd3f25c66f6247a423b7"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack to mix *args with **kwargs in a python 2.7-compliant way \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/acceleration/checkpoint.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e73812c3a62571ec92f85f132efed5bf5bb767f76059c8617009f3da90e72b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack for classifier-free guidance \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gradio/app.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea73445a8cd6c2124b97ebb312d46322446b0c87ee057e776427f8aea365c25b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack to update num_sampling_steps and cfg_scale \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gradio/app.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2999683794c38f8553e13b1ac5bc23a9d5a15aefdba46edcf4b03f122f533b"}},{"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":"3129a5fa4f28c9da28ea23a5d9a891bbacc51c389cd2b96509bd3974ada6bfff"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c859c2ccbf72b5ed9535c71d2fa91d6d6f892ea28604cd27a569c7119ed33897"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58e5193f5de01ef86a6e8b5ce74b7e550ce3d19a0904986db13e2938d4b717ed"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"154e3041006dae81628a5fef48338fcf2617ce312b8ea5ef7655235b30410904"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"39a64d9ca50ea3d4f62b89d8bfca748f71792df2458910a72ab9c441e22d73fe"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b648ab84f526ae3166520246471b0be2d4575c6b03d5f8e06d63d041d25c51c4"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b1c38064afb268d963a80d65edf944c24df58b8f66e8386a86881975a3f8495c"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b8a0c8c2337378c7785714ec7078811a5eb48de263b9fa3f629783185dace42d"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"479303866224b8081bc9aeb7536ce9bd8b718a572cc11754e59b0f3945af8192"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"310af37e31192bb6c106009b4fffee61c4a4361d1ef1f96871c0085071c122f3"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1b24196e77961bc4f04ff1298b969cbae47241194b6f1c87f55166c921f6a90"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"668438e938d0e97403a7826622441eacb353fec0583716463a3e072d6e0357d4"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6c277274173c33528e983395a0ba018067d5d74419ace9e707defc174db3423d"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd660fad99de10af907dfbba184de9bbc859bd97bee9cf69260cec0323d25e48"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"126557914cc1f80a9eafc9821674bf921824e655b2fa6278b77b949289e16643"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"60e549dd749875889a6763dcbdac56b3f214e93f9570c66cfa4c22d2a160ab00"},"properties":{"dependency":{"package":"torch","version":"2.4.0","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2024-48063","BIT-pytorch-2025-2148","BIT-pytorch-2025-2149","BIT-pytorch-2025-2953","BIT-pytorch-2025-2998","BIT-pytorch-2025-2999","BIT-pytorch-2025-3000","BIT-pytorch-2025-3001","BIT-pytorch-2025-32434","BIT-pytorch-2025-3730","BIT-pytorch-2025-46148","BIT-pytorch-2025-55551","BIT-pytorch-2025-55552","BIT-pytorch-2025-55553","BIT-pytorch-2025-55554","BIT-pytorch-2025-55557","BIT-pytorch-2025-55558","BIT-pytorch-2025-55560","BIT-pytorch-2026-24747","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-259","PYSEC-2025-189","PYSEC-2025-190","PYSEC-2025-191","PYSEC-2025-192","PYSEC-2025-193","PYSEC-2025-194","PYSEC-2025-195","PYSEC-2025-198","PYSEC-2025-203","PYSEC-2025-204","PYSEC-2025-205","PYSEC-2025-206","PYSEC-2025-207","PYSEC-2025-208","PYSEC-2025-209","PYSEC-2025-41","PYSEC-2026-139","PYSEC-2026-1856","PYSEC-2026-1970","PYSEC-2026-2286"],"reachability":{"kind":"production","file":"gradio/app.py","line":18}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15dcaa67bf2a27fbce68339a1c9f384f6aafd0b57c4879a9cacd2546bf735ad5"},"properties":{"dependency":{"package":"accelerate","version":"0.29.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 47 of 47 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 47 separate risks. Counted over 47 of the 93 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/distributed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f236b8a929901ce359d61ee91b5c259b87fe37244da122991c7a7e3fc06932fd"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/dc_ae.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f4ed3205376cc7209b89a74f70c5abc40f4288b326e15e12caa609aec6bb0b"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/nn/ops.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"029a6c1a2d85f8e147d27bae9bea831c6a046a58f1739c6bdf8ff50196f319a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gradio/app.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17390ba11f47ba38a36be3351a41c1e7d56270c6623d1189314c6da7811de46d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/diffusion/train.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0085d8c29b3b512ae01fd2ae9e843ecbe8526609445c99af40cee25c6a929c71"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/vae/train.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed412ce1276afa20c0b1d548f1e7466527371d959575f3f9cc4a4e0339c56c6e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/hunyuan_vae/distributed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"518128b4edefacd09813d4bbbe1f78bda5c566b5a93a7718fd4578eb36d92487"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/sampling.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6718340ca68d702fdf8b0809c986573bf2d43bebd04c36c27e3a6a33fa3edb5b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/train.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4da8772df2cdc50dcc18e3da4910cba445a40289364598a4d975745355b1899"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/ckpt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeac3da08c8494fe6fd62d67e186fce575d654ffdea7db79a97eb122ba7b4191"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/tensor_parallel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c979c15b4f2480039d5d90a6b1cf0141f9a4c0ca89b5f18891852b97577c6736"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/sampler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a04914c0681d699eaafdff59a2f05597a53eaea12081d7e103cd454432d542c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/layers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f2a39072e2405844317002f3a3d6201d002c419cf72a69b4882f313a79203b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/prompt_refine.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db46eef199b3b44b42597dc8daaf1bc5e369fe5ec14897afa74b405540238c8e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/dataloader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a3bc680640d461273163e12fdebdf6b4edae8a859b75a0a963453fe66529b9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b8dae1c6a7d5c0ce6b75374c614f5864dfe8f95381b67a91f6f9ba81cf7acb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/misc.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de244bf3188cc79ba740617b90a6e0ee556b4e42c99d5c40946a91b7c78cc780"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/inference.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48177ffb4b0dd17b36383f2dad747f3dacc7322a127d0ef9e5cdb4f6f5998f7e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/acceleration/checkpoint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea07a8c13ef7d44f3dda695d53bf51c85a15c941e3a87127e6cb3462bf6523c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/autoencoder_2d.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fcf5cea2973bb3f081df97a936b21e0703025703a026d1ad47c2c0d2b216e2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/datasets.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4af2ca7bf8d0c25e19f74c2e28a77d4d8f64479d3c84ea99eda542e721e9b3a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f414b241d9b8bffae805e086b466f2993e7cb9acbf58d7819e96d567ac5533"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"977ee7f8d92afada9bd42c3db78bb1472c281ce6adf556567bcf506a52dbe0bb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/diffusion/inference.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d48fedb4329910fd926eb60f792771c26058ec86730a27942e6dc9c512191f8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/read_video.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57db3f986f3d07db43d50c711e9b390d93b6007e2a09e7c47b287ac777ce5acc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/nn/vo_ops.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47039ffa2267856f8e5c8dcb6f6479b91d42cbdce79ec449d958cbe55cc90a0a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/losses.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dd91b95f3a3e59c66c2442d172be0654e293c780706d2053f2ac43c37a875e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/lpips.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22ef196868f2b7b504ae8908beba21b79a2852acdbf3ae3ea2fc415d6a45a55"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/config.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba410666155453c041e7c4dee49834156ed8e5916e358b9fc37f19fab35bd37a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/policy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c4635ae485a2be8915bc6c364e2c0d29affafc162d4c6da0ca2bd6f187f916"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/hunyuan_vae/policy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"361d15a570c14cf43f5c1daa232726f2e017662fc0e9f5b19cab0028be4527a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/parallel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6c0a32042bfcb30371a3ace6afd8d0e4dd37b6f2dbc7ae07b189046d7e1e46"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/bucket.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfa308ffdd6a5267b0c38c6b8fc7543d3b5fe8617654b0ba274b9c0394b50d5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/acceleration/communications.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e742cb4a7be3c25291e6fe231cbc31d4ffc99d90bbdbeb2feb19cc80d2301a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/vae/inference.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a61ccee690a8fdc2150677e9ddc30a99262f2118c1873a58af5ad09f3b254a0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/aspect.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d6ec402ef9f68c5a7d3a09550adee5466b00ef432aa3b50674f0c014769634"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/vae/stats.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d3bff144daa52eb79fde19e731b62587476d84b34ebf544b8e8426c500f473"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/math.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4d9ca0599063066bb8ac13b4b7125f70dc4c8c58d94c66942af4f501dfc0cc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/vae/discriminator.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25d7bfc7246cf97548ea167ec8a31c0a18f988f6876e34563890084e24c9c3c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/models/nn/norm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d167094e003645c10d88110ea82dbc576d416fa6e60944375fa18fc665e3ac95"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/pin_memory_cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e20f007b479be85e201c368459fbd97319d627ae5c80a47facf102e9954050c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/optimizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fd82385d9997a71359dc8e0e278a3d594ab8287a3f5c1f7ad34172cca13d04"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/ae_model_zoo.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34edd579a7092ff90c0b135abcc91d42d514792f0d75581ea951657b2923568"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/text/conditioner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3c8ef2d9712b670e4d69238113e005dc96a312042ba612deb8baa3e253364b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/utils/cai.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"128adbae1b9b08a7b8846f72fbe0cd55df72914162915fc60bff058ee03181da"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"configs/diffusion/train/image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b66e7908c85ee66297b15267213a1c604dd26bd0b1cf1a2dd811f3b5a9595bc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/dc_ae/utils/init.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86cde5d100de644e9ba9b8a8a37fbe88c5d7884b36c14ff4dbe5f507b3680a5"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060requirements.txt\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"requirements.txt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea225f8356846d84bbfadf416ac2ef55b5c7044e420f90a9d544ca3d435c540"}},{"ruleId":"P4","level":"warning","message":{"text":"No deployment automation: No release automation was found in CI \u2014 neither a deploy stage (Helm/Kubernetes/compose manifests, an orchestrated rollout) nor a publish job that ships the built artifact. Releases appear to be run by hand, which is slower, less repeatable and harder to reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7a7f38718309412c2d2c2c0663260a3d160de9a5a60f3915755be16386d3f1e8"}},{"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: \u0060cfg.get(\u0022plugin\u0022, \u0022zero2\u0022) in (\u0022zero1\u0022, \u0022zero1-seq\u0022) and (step \u002B 1) % accumulation_steps != 0\u0060 appears character-identically in 2 files \u2014 scripts/diffusion/train.py, scripts/vae/train.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":"scripts/diffusion/train.py"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f4ca4b71a8cb85272313b8c828b56b0d35dfc949692a326f7de208ea8d4821"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ckpt_every \u003E 0 and actual_update_step % ckpt_every == 0\u0060 appears character-identically in 2 files \u2014 scripts/diffusion/train.py, scripts/vae/train.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":"scripts/diffusion/train.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c76302ab16f7da415af1b35ca7b424b0038eea83e4b7f0e9b0c7004d1f2199"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ckpt_every \u003E 0 and actual_update_step % ckpt_every == 0 and coordinator.is_master()\u0060 appears character-identically in 2 files \u2014 scripts/diffusion/train.py, scripts/vae/train.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":"scripts/diffusion/train.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"301c6357f5d6dea3eea98c276c85f87b9b526307c777c6e8a6fb88cdb74707c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/distributed.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9aec3b0f1ad4d632e392db80978527f2532af53c1480611bb0883a29a115b51"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/models/mmdit/math.py"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9f306aeabdf29cbb786edbab5aef800dc1f6242919f9674daa282d8d0ddfc2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"opensora/datasets/utils.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f260ab76db248e679f070478b08551d39f9605fa0e4dc7d70c9fc37521e717b6"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"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":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":18,"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."]}]}